OSDN Git Service

* configure.in (HAVE_AS_TLS): Add alpha tests.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2002-05-31  Richard Henderson  <rth@redhat.com>
2
3         * configure.in (HAVE_AS_TLS): Add alpha tests.
4         * configure: Rebuild.
5         * config/alpha/alpha.c (TARGET_AS_TLS): New.
6         (alpha_tls_size, alpha_tls_size_string): New.
7         (overide_options): Set it.  Always install machine_status hooks.
8         (input_operand): Accept got tls predicates.
9         (local_symbol_p): Merge into ...
10         (local_symbolic_operand): ... here.  Reject tls symbols.
11         (global_symbolic_operand): Likewise.
12         (tls_symbolic_operand_1, dtp16_symbolic_operand): New.
13         (dtp32_symbolic_operand, gotdtp_symbolic_operand): New.
14         (tp16_symbolic_operand, tp32_symbolic_operand): New.
15         (gottp_symbolic_operand, tls_symbolic_operand_type): New.
16         (alpha_encode_section_info): Handle TLS symbols.
17         (alpha_strip_name_encoding): Likewise.
18         (alpha_legitimate_address_p): Likewise.
19         (alpha_legitimize_address): Likewise.
20         (alpha_expand_mov): Early exit to avoid nop moves.
21         (struct machine_function): Move from unicosmk.h.  Add some_ld_name.
22         (alpha_init_machine_status, alpha_mark_machine_status,
23         alpha_free_machine_status): Always define.
24         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
25         (print_operand, print_operand_address): Add TLS relocs.
26         * config/alpha/alpha.h (HAVE_AS_TLS): Default 0.
27         (MASK_TLS_KERNEL, TARGET_TLS_KERNEL): New.
28         (TARGET_SWITCHES): Add -mtls-kernel.
29         (alpha_tls_size, alpha_tls_size_string): New.
30         (TARGET_OPTIONS): Add -mtls-size=.
31         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
32         REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Add R0_REG.
33         (ASM_OUTPUT_LABELREF): Skip %.
34         (PRINT_OPERAND_PUNCT_VALID_P): Add &.
35         (PREDICATE_CODES): Update.
36         * config/alpha/alpha.md (UNSPEC_TLSGD_CALL, UNSPEC_TLSLDM_CALL,
37         UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_DTPREL, UNSPEC_TPREL,
38         UNSPEC_TP, UNSPECV_SET_TP): New.
39         (adddi_er_lo16_dtp, adddi_er_hi32_dtp, adddi_er_lo32_dtp,
40         adddi_er_lo16_tp, adddi_er_hi32_tp, adddi_er_lo32_tp, load_tp,
41         set_tp, movdi_er_tlsgd, movdi_er_tlsldm, movdi_er_gotdtp,
42         movdi_er_gottp, call_value_osf_tlsgd, call_value_osf_tlsldm): New.
43         (call_value_osf_2_er): Accept anything as op4.
44         * config/alpha/alpha-protos.h: Update.
45         * config/alpha/unicosmk.h (struct machine_function): Move to alpha.c.
46
47 2002-05-31  Zack Weinberg  <zack@codesourcery.com>
48
49         * cppinit.c (append_include_chain): Always pay attention to
50         cxx_aware when setting new->sysp.  Remove ATTRIBUTE_UNUSED
51         marker on argument.
52
53 2002-05-31  Kazu Hirata  <kazu@cs.umass.edu>
54
55         * target.h: Fix formatting.
56         * timevar.h: Likewise.
57         * tlink.c: Likewise.
58         * toplev.c: Likewise.
59         * toplev.h: Likewise.
60         * tree.c: Likewise.
61         * tree-dump.h: Likewise.
62         * tree.h: Likewise.
63         * tree-inline.h: Likewise.
64         * unroll.c: Likewise.
65         * unwind-dw2.c: Likewise.
66         * unwind-dw2-fde.c: Likewise.
67         * unwind-dw2-fde-glibc.c: Likewise.
68         * unwind-dw2-fde.h: Likewise.
69         * unwind.h: Likewise.
70         * unwind-sjlj.c: Likewise.
71         * varasm.c: Likewise.
72         * varray.h: Likewise.
73         * vmsdbg.h: Likewise.
74         * vmsdbgout.c: Likewise.
75         * xcoffout.h: Likewise.
76
77 2002-05-31  Igor Shevlyakov <igor@microunity.com>
78
79         * expr.c (compare_from_rtx): Generate comparison between op0 and op1 
80         rather than cc0 and 0 in a case when HAVE_cc0 is not defined.
81
82 2002-05-31  Matthew Woodcraft  <mattheww@chiark.greenend.org.uk>
83
84         * gcc.c (cpp_unique_options): Remove "-d" options.
85         (cpp_debug_options): New spec string.
86         (default_compilers): Use it.
87         * objc/lang-specs.h: Likewise.
88
89 2002-05-31  Nathanael Nerode  <neroden@twcny.rr.com>
90
91         * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with 
92         BUILD_PREFIX, BUILD_PREFIX_1, to correct nomenclature.
93         * gcc/mklibgcc.in: Likewise.
94         * gcc/config/arc/t-arc: Likewise.
95         * gcc/configure.in: Likewise.
96         * gcc/configure: Regenerate.
97
98 2002-05-31  Stan Shebs  <shebs@apple.com>
99             Turly O'Connor  <turly@apple.com>
100
101         * c-decl.c (struct binding_level): Change int field n_incomplete
102         to tree list incomplete_list.
103         (clear_binding_level): Init field with NULL.
104         (pushdecl): Add incomplete type to list.
105         (mark_binding_level): Mark the incomplete list.
106         (finish_struct): Scan the incomplete list for types instead
107         of all decls in the current binding level.
108
109 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
110
111         * pa.c (output_millicode_call): Add missing '%' characters.
112         (output_call): Likewise.
113
114 2002-05-31  David Edelsohn  <edelsohn@gnu.org>
115
116         * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Define.
117         (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
118
119 2002-05-31  Alan Lehotsky <apl@alum.mit.edu>
120
121         * varasm.c (mark_constant_pool): Walk epilogue delay list
122         checking the insn, not the chain for potential constants.
123         
124 Fri May 31 12:38:43 2002  J"orn Rennecke <joern.rennecke@superh.com>
125
126         * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
127
128 Fri May 31 13:50:19 CEST 2002  Jan Hubicka  <jh@suse.cz>
129
130         * i386.c (classify_argument): Properly handle base types.
131
132         * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
133         Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
134         registers.
135
136 Fri May 31 13:37:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
137
138         * gcse.c (gcse_emit_move_after): New.
139         (pre_delete, hoist_store): Use it.
140
141         * reload1.c (emit_input_reload_insns): Use constrain_operands
142         instead of constraint_accepts_reg_p to verify optimization.
143         (constraint_accepts_reg_p): Kill
144
145         * reload1.c (reload_cse_delete_noop_set): Kill.
146         (reload_cse_simplify): use delte_insn_and_edges.
147
148 2002-05-31  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
149
150         * cfgloop.c (flow_loops_find): Initialize first and last fields
151         correctly.
152
153 2002-05-31  Neil Booth  <neil@daikokuya.demon.co.uk>
154
155         * c-common.c (builtin_define_std): Correct logic.
156
157 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
158
159         * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
160         (output_call): Likewise.
161
162 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
163
164         * pa.c: Move output.h include after tree.h include.
165         (pa_asm_output_mi_thunk): Constify identifier lab.
166
167 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
168
169         * config/ns32k/ns32k.h: Define named constants for the
170         bits in target_flags and use them.
171         * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
172
173 2002-05-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
174
175         * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
176         architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
177         * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
178         default scheduling model.
179         * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
180         * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
181         * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
182         * doc/install.texi (hppa*-*-*): Document default scheduling.
183
184 2002-05-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
185
186         * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
187
188 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
189
190         * config.gcc (ns32k-*-netbsd*): Set tm_file to
191         "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
192         * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
193         netbsd.h, or netbsd-aout.h.
194
195 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
196
197         * longlong.h (count_trailing_zeros): Add missing \, and clean up
198         whitespace in __ns32000__ case.
199
200 2002-05-31  Aldy Hernandez  <aldyh@redhat.com>
201
202         * expr.c (expand_expr): Output partially zeroed out vectors with
203         output_constant_def.
204
205 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
206
207         * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
208         (sh-*-netbsdelf*)
209         (shl*-*-netbsdelf*): New targets.
210         * config/sh/netbsd-elf.h: New file.
211
212 2002-05-30  Richard Henderson  <rth@redhat.com>
213             Eric Botcazou  <ebotcazou@multimania.com>
214
215         PR optimization/6822
216         * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
217         to unsigned int for op1 comparisons.  Use gen_int_mode.
218
219 2002-05-30  Eric Botcazou  <ebotcazou@multimania.com>
220
221         * expmed.c (const_mult_add_overflow_p): New.
222         * expr.h: Declare it.
223         * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
224         Don't eliminate the biv if the giv has a constant multiplier and
225         the rhs argument of the comparison does satisfy the predicate.
226         Use expand_mult_add to compute the replacement constant.
227
228 2002-05-30  Osku Salerma  <osku@iki.fi>
229
230         * c-common.c (c_common_attribute_table): Add "may_alias" entry.
231         (c_common_get_alias_set): Handle it.
232         * doc/extend.texi: Document it.
233
234 2002-05-30  Richard Henderson  <rth@redhat.com>
235
236         * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
237         * toplev.c (process_options): Don't check it.
238         * doc/tm.texi: Don't document it.
239         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
240         (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
241         * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
242         frame pointer optimization if current_function_profile.
243
244 2002-05-30  Kazu Hirata  <kazu@cs.umass.edu>
245
246         * langhooks.c: Fix formatting.
247         * langhooks.h: Likewise.
248         * lcm.c: Likewise.
249         * libgcc2.c: Likewise.
250         * lists.c: Likewise.
251         * local-alloc.c: Likewise.
252         * loop.c: Likewise.
253         * loop.h: Likewise.
254
255 2002-05-30  Marc Espie <espie@openbsd.org>
256
257         * config.gcc (sparc64-*-openbsd*): New.
258         * config/sparc/openbsd1-64.h: New.
259         * config/sparc/openbsd64.h: New.
260
261 2002-05-30  Jeff Law <law@redhat.com>
262
263         * flow.c (propagate_one_insn): Revise yesterday's patch.  Delete
264         a dead insn with a REG_RETVAL note when the entire libcall is not
265         dead and remove the associated REG_LIBCALL note at the same time.
266
267 Thu May 30 19:54:30 2002  J"orn Rennecke <joern.rennecke@superh.com>
268
269         * lcm.c (output.h): #include.
270         (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
271         as an ordinary block.
272         (optimize_mode_switching): Don't pretend that the exit block is
273         an ordinary block, or handle sucessors of entry block specially.
274         Instead, split edges from entry block and to exit block, and
275         put a computing definition on the thus gained post-entry-block,
276         and a need on the pre-exit-block.
277
278 Thu May 30 20:28:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
279
280         * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
281         * rtl.texi: Document 'B'
282
283 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
284
285         * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
286         at run-time.
287         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
288
289 2002-05-30  Aldy Hernandez  <aldyh@redhat.com>
290
291         * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
292         const0_rtx instead of NULL_RTX when in error.
293         (altivec_expand_abs_builtin): Same.
294         (rs6000_expand_binop_builtin): Same.
295         (altivec_expand_predicate_builtin): Same.
296         (altivec_expand_stv_builtin): Same.
297         (rs6000_expand_ternop_builtin): Same.
298         (altivec_expand_builtin): Same.
299
300 2002-05-29  David S. Miller  <davem@redhat.com>
301
302         * rtl.h (clear_emit_caches): Delete.
303         * integrate.c (output_inline_function): Don't call it.
304         * emit-rtl.c (restore_emit_status, init_emit): Likewise.
305         (clear_emit_caches): Delete definition.
306         (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
307
308 2002-05-30  Hans-Peter Nilsson  <hp@bitrange.com>
309
310         * config/mmix/mmix.c: Include real.h.
311         (mmix_constant_address_p): Remove redundant test before switch.
312
313 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
314
315         * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
316         only if not already defined.
317
318 2002-05-29  Kazu Hirata  <kazu@cs.umass.edu>
319
320         * config/h8300/h8300-protos.h: Remove prototypes for
321         ok_for_bclr and small_power_of_two.
322         * config/h8300/h8300.c (small_power_of_two): Remove.
323         (ok_for_blcr): Likewise.
324         (fix_bit_operand): Make WHAT deal with an integer instead of a
325         constraint character.
326         * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
327         (CONST_OK_FOR_P): Likewise.
328         (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
329         CONST_OK_FOR_P any more.
330         * config/h8300/h8300.md (andqi3): Adjust to the new prototype
331         of fix_bit_operand.
332         (iorqi3): Likewise.
333         (xorqi3): Likewise.
334
335 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
336
337         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
338         (CPP_PREDEFINES): Make sure this is undefined.
339         (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
340         since it is no longer in CPP_PREDEFINES.  Don't -U__MIPSEL__
341         or -U__MIPSEB__ before defining one or the other.  Instead,
342         use %(subtarget_endian_default) if neither -EB nor -EL are
343         specified.
344         (SUBTARGET_EXTRA_SPECS): Define.
345         (SUBTARGET_CPP_SPEC): Remove __LONG64 handling.  Use
346         %(netbsd_cpp_spec).
347
348 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
349
350         * doc/md.texi (Patterns): Note pattern condition pitfall
351         for unnamed insn.
352
353 2002-05-29  Aldy Hernandez  <aldyh@redhat.com>
354
355         * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
356         when TARGET_ALTIVEC.  Move handling of generic unary, binary, and
357         ternary operations from here...
358         (rs6000_expand_builtin): ...to here.
359         New argument expandedp.
360         Change all instances of altivec_expand_binop_builtin to
361         rs6000_expand_binop_builtin.
362         (altivec_expand_unop_builtin): Rename to
363         rs6000_expand_unop_builtin.
364         (altivec_expand_binop_builtin): Rename to
365         rs6000_expand_binop_builtin.
366         (altivec_expand_ternop_builtin): Rename to
367         rs6000_expand_ternop_builtin.
368
369 2002-05-29  Richard Henderson  <rth@redhat.com>
370
371         * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
372         (TARGET_BI_ARCH): Likewise.
373         * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
374         (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
375         (TARGET_64BIT_DEFAULT): Default to 0.
376         (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
377
378 2002-05-29  Richard Henderson  <rth@redhat.com>
379
380         * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
381         (get_pc_thunk_name): New.
382         (output_set_got): Use it.
383         (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
384         into linkonce sections.
385
386 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
387
388         * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
389         (CPP_PREDEFINES): Make sure this is undefined.
390         (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
391         (CPP_SUBTARGET_SPEC): Don't provide different versions for
392         default-32 and default-64.  Just always use %(netbsd_cpp_spec).
393         (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
394         cpp_subtarget_spec64.  Add netbsd_cpp_spec.
395         * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
396         (CPP_PREDEFINES): Make sure this is undefined.
397         (SUBTARGET_EXTRA_SPECS): Define.
398         (CPP_SPEC): Use %(netbsd_cpp_spec).
399
400 2002-05-29  Jeff Law <law@redhat.com>
401
402         * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
403
404         * flow.c (propagate_one_insn): Do not remove a dead insn if it
405         contains a REG_RETVAL note.
406
407         * haifa-sched (sched_analyze): Remove another useless clearing
408         of SCHED_GROUP_P I missed yesterday.
409
410         * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
411         * pa.c (pa_asm_output_mi_thunk): New function.
412         * pa-protos.h (pa_asm_output_mi_thunk): Declare.
413
414 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
415             Marek Michalkiewicz  <marekm@amelek.gda.pl>
416
417         * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
418         (avr_asm_only_p): Make non-static.
419         (enum avr_arch): Remove.
420         (avr_arch_types): New.
421         (avr_mcu_types): Update.
422         (avr_override_options): Use avr_arch_types table instead of switch.
423         * avr.h (CPP_PREDEFINES): Die.
424         (avr_base_arch_macro, avr_extra_arch_macro): New.
425         (TARGET_CPU_CPP_BUILTINS): New.
426         (CPP_SPEC, EXTRA_SPECS): Simplify.
427         (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
428         CPP_AVR5_SPEC): Die.
429
430 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
431
432         * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
433         NETBSD_OS_CPP_BUILTINS_AOUT.
434         (SUBTARGET_EXTRA_SPECS): Define.
435         (CPP_SPEC): Use %(netbsd_cpp_spec).
436
437 2002-05-29  Richard Henderson  <rth@redhat.com>
438
439         * config/i386/i386.c (ix86_output_function_epilogue): New.
440         (TARGET_ASM_FUNCTION_EPILOGUE): New.
441         (pic_label_name): Remove.
442         (pic_labels_used): New.
443         (ix86_asm_file_end): Emit one pc load stub for each register used.
444         (output_set_got): Generate deep pc load to any register.
445         (ix86_select_alt_pic_regnum): New.
446         (ix86_save_reg): Don't save pic register if we can find a valid
447         call-clobbered replacement.
448         (ix86_expand_prologue): If we found a valid replacement, renumber
449         pic_offset_table_rtx.
450         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
451         pic_offset_table_rtx after reload.
452         (REAL_PIC_OFFSET_TABLE_REGNUM): New.
453         * config/i386/i386.md (set_got): Make insn, not expander.
454         (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
455
456 2002-05-29  Richard Henderson  <rth@redhat.com>
457
458         * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
459         alignment for alloca.
460
461 2002-05-29  Richard Henderson  <rth@redhat.com>
462
463         * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
464         (print_operand_address): Only add rip for symbolic addresses
465         for which we do not have another relocation type.
466
467 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
468
469         * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
470         (EXTRA_SPECS): Add netbsd_cpp_spec.
471         (CPP_SPEC): Use %(netbsd_cpp_spec).
472         (CPP_PREDEFINES): Remove.
473         * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
474         (EXTRA_SPECS): Define.
475         (CPP_SPEC): Use %(netbsd_cpp_spec).
476         (CPP_PREDEFINES): Remove.
477
478 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
479
480         PR preprocessor/6844
481         * cppmacro.c (cpp_macro_definition): Reserve space for terminating
482         NUL.
483
484 2002-05-29  Eric Christopher  <echristo@redhat.com>
485
486         * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
487         mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
488
489 2002-05-29  Nick Clifton  <nickc@cambridge.redhat.com>
490
491         * config/fr30/fr30.md: Remove previous restriction on splits.
492         Enforce conformance through gen_lowpart and cont_int_operand.
493         * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
494         as the assembler does not support ".bss".
495
496 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
497
498         * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
499         (CPP_PREDEFINES): Remove.
500         (SUBTARGET_EXTRA_SPECS): Define.
501         (CPP_SPEC): Use %(netbsd_cpp_spec).
502         * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
503         (CPP_PREDEFINES): Remove.
504         (SUBTARGET_EXTRA_SPECS): Define.
505         (CPP_SPEC): Use %(netbsd_cpp_spec).
506         * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
507         (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
508         (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
509         Add netbsd_cpp_spec.
510         (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
511
512 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
513             Zack Weinberg <zack@codesourcery.com>
514
515         * cppexp.c (cpp_num): Move to cpplib.h.
516         (CPP_ERROR): Remove.
517         (interpret_float_suffix, interpret_int_suffix): New.
518         (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
519         (cpp_classify_number, cpp_interpret_integer): New.
520         (interpret_number): Remove.
521         (eval_token): Update to use new routines.
522         * cpphash.h (cpp_num_part): Move to cpplib.h.
523         * cppinit.c (cpp_post_options): Set warn_long_long.
524         * cpplib.h (struct cpp_options): Add warn_long_long.
525         (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
526         CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
527         CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
528         CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
529         cpp_interpret_integer): New.
530
531 2002-05-29  Joel Sherrill <joel@OARcorp.com>
532
533         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
534
535 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
536
537         * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
538         NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
539         (CPP_SUBTARGET_SPEC): Define.
540         (SUBTARGET_EXTRA_SPECS): Define.
541         (CPP_SPEC): Remove.
542
543 2002-05-29  Chris Lattner  <sabre@nondot.org>
544
545         * ssa.c (rename_insn_1): Rename uses of undefined registers to
546         prevent confusion if/when the register is defined.
547
548 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
549
550         PR target/6838
551         * config/cris/cris.md: Fix typos and thinkos in comments.
552         ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
553         second alternative.
554         ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
555         ("*mov_sideqi_mem"): Similar, but for operand 3.
556         ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
557         (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
558         Remove spurious mode specifier on operand 2.
559
560 2002-05-29  Kazu Hirata  <kazu@cs.umass.edu>
561
562         * config/h8300/h8300-protos.h: Remove the prototype for
563         o_operand.
564         Add prototypes for single_one_operand and single_zero_operand.
565         * config/h8300/h8300.c (o_operand): Remove.
566         (single_one_operand): New.
567         (single_zero_operand): Likewise.
568         (print_operand): For 'V' operand, and the operand with 0xff.
569         For 'V' and 'W' operands, do not and the bit position with 7.
570         * config/h8300/h8300.md (various anonymous patterns): Replace
571         use of exact_log2 with single_one_operand/single_zero_operand.
572
573 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
574
575         * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
576
577 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
578
579         * config/s390/s390.c (legitimate_pic_operand_p): Do not
580         accept symbolic LARL operands.
581         (s390_emit_epilogue): Do not set FRAME_RELATED_P on
582         epilogue insns.
583
584 2002-05-29  Hartmut Penner  <hpenner@de.ibm.com>
585
586         * config/s390/s390.md (cmpstr_64/31): Mark whole
587         input registers as used.
588
589 2002-05-28  Richard Henderson  <rth@redhat.com>
590
591         * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
592         not current_function_uses_pic_offset_table and
593         current_function_uses_const_pool; examine current_function_profile.
594         (ix86_expand_prologue): Likewise.  Add pic_offset_table_rtx as
595         input to blockage if needed.
596         (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
597         (legitimize_pic_address): Likewise.  Set regs_ever_live for
598         pic_offset_table_rtx when invoked during reload.
599         * config/i386/i386.h (FINALIZE_PIC): Remove.
600         * config/i386/i386.md (tablejump): Reformat.  Do not set
601         current_function_uses_pic_offset_table.
602         (tls_global_dynamic, tls_local_dynamic_base): Likewise.
603         (blockage): Accept anything as operand 0.
604
605 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
606
607         * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
608         common CPP built-ins for all NetBSD a.out targets.
609         * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
610         common CPP built-ins for all NetBSD ELF targets.
611         * config/netbsd.h: Add missing notice.
612         (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
613         for all NetBSD targets.
614         (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
615         for all NetBSD targets using an LP64 code model.
616         (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
617         NetBSD targets.
618
619 2002-05-28  Richard Henderson  <rth@redhat.com>
620
621         * flow.c (update_life_info_in_dirty_blocks): Only do a partial
622         update if UPDATE_LIFE_LOCAL.
623
624 2002-05-28  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
625
626         * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
627
628 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
629                           Jason R. Thorpe <thorpej@wasabisystems.com>
630
631         config/sh reorganization to factor out endianness and coff:
632
633         * config/sh/little.h: New file.
634         * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
635         defined, define to 0 to select big-endian.
636         (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
637         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
638         * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
639         * config/sh/t-be: New file.
640         * config/sh/t-le: New file.
641
642         * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
643         (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
644         (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
645         (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
646         (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
647         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
648         (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
649         (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
650         (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
651         (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
652         CPP_DEFAULT_CPU_SPEC.  Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
653         SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
654         (LINK_SPEC): Define to SH_LINK_SPEC.
655         (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
656         (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
657         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
658         (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
659         (TARGET_ENDIAN_DEFAULT): Define if not already defined.
660         * config/sh/coff.h: New file.
661         (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
662         (TARGET_OBJFMT_CPP_BUILTINS): Define.
663         * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
664         (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
665         (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
666         (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
667         (PTRDIFF_TYPE): Likewise.
668         ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
669         (CPP_PREDEFINES): Don't define.
670         (TARGET_OBJFMT_CPP_BUILTINS): Define.
671         (LINK_SPEC): Define to SH_LINK_SPEC.
672         (LINK_EMUL_PREFIX): Redefine.
673         * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
674         (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
675         (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
676         (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
677         (TARGET_OS_CPP_BUILTINS): Define.
678         (TARGET_DEFAULT): Redefine.
679         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
680         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
681         (LINK_SPEC): Don't redefine.
682         (LINK_DEFAULT_CPU_EMUL): Redefine.
683         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
684         * sh.c (sh_asm_named_section): Don't declare / define.
685         * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
686         * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
687         (sh64-*-elf* tm_file): Likewise.
688         (sh-*-rtemself* tm_file): Likewise.
689         (sh-*-linux* tm_file): Likewise.  Add sh/little.h.
690         (sh-*-linux* tmake_file): Add sh/t-le.
691         (sh-*-rtems* tm_file): Add sh/coff.h
692         (sh-*-* tm_file): Likewise.
693
694 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
695
696         * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
697         CONSTANT_POOL_ADDRESS_P.
698
699         * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
700
701 2002-05-28  David Edelsohn  <edelsohn@gnu.org>
702             Jeff Law <law@redhat.com>
703
704         * optabs.c (expand_binop): Fix nwords sign warnings.
705         generate pseudo for add_optab.
706
707         * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
708         * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
709
710 2002-05-28      Marc Espie <espie@openbsd.org>
711
712         * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN):  Remove,
713         inherited from gas.h.
714         (ASM_QUAD):  Undef.  OpenBSD does not support it.
715
716 2002-05-28  Danny Smith  <dannysmith@users.sourceforge.net>
717
718         * doc/install.texi (binaries): Change mingw binaries
719         link to www.mingw.org.
720
721 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
722
723         * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
724
725 2002-05-28  Richard Henderson  <rth@redhat.com>
726
727         * config/i386/i386.c (ix86_compute_frame_layout): Do not add
728         bottom alignment for leaf functions.
729
730 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
731
732         * config/pa/milli32.S, config/pa/lib1funcs.asm,
733         config/sparc/sol2-g1.asm: Delete unused files.
734
735 2002-05-28  Richard Henderson  <rth@redhat.com>
736
737         * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
738
739         * flow.c (calculate_global_regs_live): Rename call_used to
740         invalidated_by_call.  Initialize from regs_invalidated_by_call
741         instead of call_used_regs.
742
743         * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
744         DECL_EXTERNAL.
745
746 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
747
748         * tree.h: Don't include real.h.
749         Forward-declare struct realvaluetype.
750         (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
751         contain it.
752         (TREE_REAL_CST_PTR): New accessor.
753         (TREE_REAL_CST): Update.
754         * real.h: Include machmode.h.
755         (realvaluetype): Make it struct realvaluetype, not a typedef.
756         (build_real): Prototype here.
757
758         * tree.c: Include real.h.
759         (build_real): Allocate the REAL_VALUE_TYPE as a separate
760         object in GC memory, set TREE_REAL_CST_PTR to point to it.
761         (build_real_from_int_cst): Use build_real.
762         * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
763         REAL_CST.
764
765         * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
766         fold-const.c, print-tree.c, real.c: Include real.h.
767         * Makefile.in: Update dependency lists.
768
769 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
770
771         * basic-block.h (last_basic_block): Declare.
772         (expunge_block_nocompact): Declaration removed.
773         (compact_blocks): Declare.
774         * cfg.c (last_basic_block): New variable.
775         (expunge_block_nocompact): Removed.
776         (expunge_block): Do not compact basic blocks.
777         (compact_blocks): New.
778         * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
779         longer change.
780         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
781         last_basic_block.
782         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
783         real positions of blocks.
784         (delete_unreachable_blocks): Simplified -- quadratic behavior now
785         cannot occur.
786         (cleanup_cfg): Compact blocks.
787         * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
788         basic_block_info varray.
789         (flow_delete_block): Comment update.
790         (back_edge_of_syntactic_loop_p): Modify position check code.
791         (verify_flow_info): Update checking.
792         * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
793         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
794         (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
795         indices no longer change.
796         * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
797         last_basic_block.
798         * predict.c (estimate_bb_frequencies): Remove unneccessary code.
799         * profile.c (branch_prob): Compact blocks.
800         * sched-rgn.c (find_rgns): Replace n_basic_blocks with
801         last_basic_block.
802
803 2002-05-28  Kazu Hirata  <kazu@cs.umass.edu>
804
805         * config/h8300/h8300.md (two anonymous patterns): New.
806
807 2002-05-28  David S. Miller  <davem@redhat.com>
808
809         * config/sparc/sparc.md (cpu): Tidy.
810         (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
811         'trap'.
812         (in_call_delay): Delete reference to 'return' type.
813         (eligible_for_return_delay, in_return_delay, define_delay
814         referencing those): Delete.
815         (rest of file): Use new type attributes as appropriate.
816         * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
817         * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
818         * config/sparc/ultra1_2.md (us1_single): New reservation.
819         (us1_ialuX): Likewise.
820         * config/sparc/ultra3.md (us3_single): Likewise.
821         (us3_ialuX): Likewise.
822         (us3_imul, us3_idiv): Tweak.
823
824 2002-05-28  Richard Henderson  <rth@redhat.com>
825
826         * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
827         STRING_CST.
828
829 2002-05-28  Richard Henderson  <rth@redhat.com>
830
831         * config.gcc: Obsolete mn10200.
832
833 2002-05-28  Neil Booth  <neil@daikokuya.demon.co.uk>
834
835         * cppexp.c (interpret_number): Optimize for single-digit
836         and less-than-half-precision cases.
837         (num_trim, num_positive, num_div_op): Cast constants.
838
839 2002-05-27  Bo Thorsen  <bo@suse.de>
840
841         * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
842         3.1 branch. The file was made by Jakub Jelinek.
843         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
844         support so multilib doesn't break. And don't define this at all
845         when -Dinhibit_libc is used.
846         (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
847         * config/i386/t-linux64: Implement full multilib support. Patch
848         originally done by Andreas Jaeger and Jakub Jelinek.
849
850 2002-05-27  Roger Sayle  <roger@eyesopen.com>
851
852         * c-common.c: Add support for __attribute__((nothrow)) to specify
853         that a function cannot throw an exception (using TREE_NOTHROW).
854         (handle_nothrow_attribute): New function to process this attribute.
855
856         * doc/extend.texi: Document the new nothrow function attribute.
857
858 2002-05-27  H.J. Lu  (hjl@gnu.org)
859
860         * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
861         (num_positive): Likewise.
862         (num_div_op): Likewise.
863
864 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
865
866         * c-common.c (c_common_init): Always use intmax_t.
867
868 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
869
870         * c-common.c (c_common_init): Use intmax_t for now.
871
872 2002-05-24  Andrew Haley  <aph@redhat.com>
873
874         * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
875         if T is a boolean type.
876
877 2002-05-27  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
878
879         * basic-block.h (last_basic_block): Defined as synonym for
880         n_basic_blocks.
881         * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
882         flow_depth_first_order_compute, flow_preorder_transversal_compute,
883         flow_dfs_compute_reverse_init): Replaced relevant occurences of
884         n_basic_blocks with last_basic_block.
885         * cfgbuild.c (make_edges): Likewise.
886         * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
887         * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
888         * combine.c (combine_instructions): Likewise.
889         * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
890         iterative_dataflow_bitmap): Likewise.
891         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
892         calc_idoms, idoms_to_doms): Likewise.
893         * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
894         Likewise.
895         * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
896         compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
897         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
898         one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
899         delete_null_pointer_checks, compute_code_hoist_vbeinout,
900         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
901         compute_store_table, build_store_vectors): Likewise.
902         * haifa-sched.c (sched_init): Likewise.
903         * ifcvt.c (if_convert): Likewise.
904         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
905         pre_edge_lcm, compute_available, compute_nearerout,
906         compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
907         Likewise.
908         * predict.c (estimate_probability, process_note_prediction,
909         note_prediction_to_br_prob): Likewise.
910         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
911         * recog.c (split_all_insns, peephole2_optimize): Likewise.
912         * regrename.c (copyprop_hardreg_forward): Likewise.
913         * resource.c (init_resource_info): Likewise.
914         * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
915         init_regions, schedule_insns): Likewise.
916         * ssa-ccp.c (ssa_const_prop): Likewise.
917         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
918         * ssa.c (compute_dominance_frontiers,
919         compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
920
921         * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
922         * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
923         sizes consistently.
924
925 Mon May 27 14:28:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
926
927         * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
928         new.
929         * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
930         hoist_insn_after, hoist_insn_to_edge): New.
931
932 Mon May 27 12:14:02 CEST 2002  Jan Hubicka  <jh@suse.cz>
933
934         * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
935         (PROP_FINAL): Include.
936         * flow.c (life_analysis, update_life_info,
937         init_propagate_block_info, mark_set_1, mark_used_rgs):
938         Support SCAN_DEAD_STORE.
939
940 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
941
942         * c-common.c (c_common_init): Set CPP arithmetic precision.
943         * cppexp.c (cpp_num_part): Move typedef ...
944         * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
945         * cppinit.c (cpp_create_reader): Default to host long arithmetic.
946         (sanity_checks): Update.
947
948 2002-05-26  Geoffrey Keating  <geoffk@redhat.com>
949
950         * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
951         (mkheaders): New rule.
952         (install-mkheaders): New rule.
953         * configure.in (all_outputs): Add mkheaders.
954         * configure: Regenerate.
955         * mkheaders.in: New file.
956
957 2002-05-26  Jakub Jelinek  <jakub@redhat.com>
958
959         * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
960
961 2002-05-26  Andreas Jaeger  <aj@suse.de>
962
963         * cfg.c (dump_flow_info): Remove extra argument to fprintf.
964
965 2002-05-26  Neil Booth  <neil@daikokuya.demon.co.uk>
966
967         * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
968         right_shift): Remove.
969         (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
970         HIGH_PART): New.
971         (struct op): Use cpp_num.
972         (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
973         num_part_mul, num_unary_op, num_binary_op, num_negate,
974         num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
975         num_div_op, num_lshift, num_rshift, append_digit): New.
976         (interpret_number, parse_defined, eval_token, reduce): Update
977         for two-integer arithmetic.
978         (binary_handler): New typedef.
979         (optab): Update.
980         (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
981         (_cpp_parse_expr, reduce): Update to handle two-integers.
982         * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
983
984 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
985
986         * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
987         * config/avr/avr.c (jump_over_one_insn_p): Take length of the
988         branch insn into account, do not assume 1.
989         (avr_out_sbxx_branch): New function.  Optimize cases of skipping
990         over single word insn.  Handle upper half of I/O space too.
991         * config/avr/avr.md (*sbrx_branch): Use it.
992         (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
993         (*sbix_branch, *sbix_branch_bit7): Likewise.
994         (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
995         Use RTL peepholes to optimize register operand sign tests.
996
997 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
998
999         * config/avr/avr.c (avr_asm_only_p): New variable.
1000         (avr_override_options): Set it here if AVR1.
1001         (asm_file_start): Test it here, report an error if set.
1002
1003 2002-05-26  Kazu Hirata  <kazu@cs.umass.edu>
1004
1005         * alias.c: Fix formatting.
1006         * attribs.c: Likewise.
1007         * bb-reorder.c: Likewise.
1008         * bitmap.c: Likewise.
1009         * bitmap.h: Likewise.
1010         * builtins.c: Likewise.
1011
1012 Sun May 26 14:00:44 CEST 2002  Jan Hubicka  <jh@suse.cz>
1013
1014         * reload.c (find_valid_class): Accept new argument DEST,
1015         choose class accordingly.
1016         (push_reload): Update callers.
1017
1018 2002-05-26  Andreas Jaeger  <aj@suse.de>
1019
1020         * combine.c (combine_instructions): Do not indent #if for
1021         traditional C.
1022
1023 2002-05-25  Richard Henderson  <rth@redhat.com>
1024
1025         * c-pragma.c (apply_pragma_weak): Convert value identifier to
1026         string for decl_attributes.
1027         (handle_pragma_weak): Call assemble_alias if we're modifying
1028         an existing decl.
1029
1030 2002-05-25  Richard Henderson  <rth@redhat.com>
1031
1032         PR target/6788
1033         * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
1034         using rtl instead of fprintf.
1035         * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
1036         * config/sparc/sparc-protos.h: Update.
1037
1038 2002-05-25  Neil Booth  <neil@daikokuya.demon.co.uk>
1039
1040         * Makefile.in (C_COMMON_H): Fix.
1041         Update other targets.
1042         * c-common.c: Don't include c-lex.h.
1043         (builtin_define_with_value): Make static and prototype.
1044         (builtin_define_std): Move from c-lex.h.
1045         * c-common.h (init_c_lex): Move from c-lex.h.
1046         * c-decl.c: Don't include c-lex.h.
1047         (make_pointer_declarator): Move from c-parse.in.
1048         * c-lex.c: Don't include c-lex.h.
1049         * c-lex.h: Remove.
1050         * c-parse.in: Don't include c-lex.h; include c-pragma.h.
1051         (make_pointer_declarator): Move to c-decl.c.
1052         * c-pragma.c: Don't include c-lex.h.
1053         * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
1054         * c-tree.h (make_pointer_declarator): New.
1055 doc:
1056         * passes.texi, tm.texi: Update.
1057 objc:
1058         * Make-lang.in: Update and correct.
1059         * objc-act.c: Don't include c-lex.h or cpplib.h.
1060 treelang:
1061         * treetree.c: Don't include c-lex.h.
1062 config:
1063         * darwin-c.c: Don't include c-lex.h.
1064         * c4x/c4x-c.c: Don't include c-lex.h.
1065         * c4x/t-c4x: Update.
1066         * i370/i370-c.c: Don't include c-lex.h.
1067         * i370/t-i370: Update.
1068         * i960/i960-c.c: Don't include c-lex.h.
1069         * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
1070         * i960/t-960bare: Update.
1071         * i960/t-vxworks: Update.
1072         * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
1073         * rs6000/t-darwin: Update.
1074         * rs6000/t-rs6000-c-rule: Update.
1075         * v850/v850-c.c: Don't include c-lex.h.
1076         * v850/v850.c: Don't include c-lex.h or cpplib.h.
1077
1078
1079 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
1080
1081         * tree.def: Fix typos.
1082         * doc/install.texi: Likewise.
1083
1084 2002-05-25  Richard Henderson  <rth@redhat.com>
1085
1086         * configure.in (HAVE_AS_TLS): Add ia64 test.
1087         * configure: Rebuild.
1088         * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
1089         (override_options): Set it.
1090         (TARGET_HAVE_TLS): New.
1091         (sdata_symbolic_operand): Look for 's'.
1092         (tls_symbolic_operand): New.
1093         (ia64_expand_load_address): Abort for tls symbols.
1094         (gen_tls_get_addr): New.
1095         (gen_thread_pointer): New.
1096         (ia64_expand_move): Split out from movdi.  Handle tls symbols.
1097         (rtx_needs_barrier): Add new unspecs.
1098         (ia64_encode_section_info): Handle tls symbols.
1099         (ia64_strip_name_encoding): Strip two encoding chars.
1100         * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
1101         (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
1102         (TARGET_OPTIONS): Add tls-size.
1103         (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
1104         * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
1105         UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
1106         (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
1107         (movsf, movdf): Likewise.
1108         (movdi_symbolic): Use match_scratch.  Don't split if we won't
1109         have a scratch availiable.
1110         (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
1111         add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
1112         load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
1113         * config/ia64/ia64-protos.h: Update.
1114         * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
1115         sdata_symbolic_operand.
1116         (ASM_OUTPUT_LABELREF): Strip two characters.
1117
1118 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
1119
1120         * combine.c (simplify_set): Remove an unnecessary subreg.
1121
1122 2002-05-25  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1123
1124         * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
1125
1126         * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
1127
1128 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
1129
1130         * toplev.c (output_clean_symbol_name): Fix another thinko.  Gosh.
1131
1132 2002-05-25  Roger Sayle  <roger@eyesopen.com>
1133
1134         * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
1135         (cond (compare x y) 0) into the equivalent (cond x y).
1136
1137 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
1138
1139         * toplev.c (output_clean_symbol_name): Use xstrdup.  Fix thinko.
1140
1141 2002-05-24  Zack Weinberg  <zack@codesourcery.com>
1142
1143         * config.gcc: Remove all stanzas for previously obsoleted
1144         systems.  Where necessary, add explicit error stanzas to
1145         prevent removed systems from being misidentified as something
1146         else.  Begin a fresh obsoletions list, with the systems that
1147         were reprieved last round.
1148         * doc/install.texi: Remove all mention of dead targets.
1149         * fixinc/mkfixinc.sh: Likewise.
1150
1151         * config/arm/arm.h: Bit 31 of target_flags is no longer
1152         reserved.
1153
1154         * config/1750a/1750a-protos.h, config/1750a/1750a.c,
1155         config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
1156         config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
1157         config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
1158         config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
1159         config/alpha/osf12.h, config/alpha/osf2or3.h,
1160         config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
1161         config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
1162         config/clipper/clipper-protos.h, config/clipper/clipper.c,
1163         config/clipper/clipper.h, config/clipper/clipper.md,
1164         config/clipper/clix.h, config/convex/convex-protos.h,
1165         config/convex/convex.c, config/convex/convex.h,
1166         config/convex/convex.md, config/convex/fixinc.convex,
1167         config/convex/proto.h, config/elxsi/elxsi-protos.h,
1168         config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
1169         config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
1170         config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
1171         config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
1172         config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
1173         config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
1174         config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
1175         config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
1176         config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
1177         config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
1178         config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
1179         config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
1180         config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
1181         config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
1182         config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
1183         config/m68k/altos3068.h, config/m68k/apollo68.h,
1184         config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
1185         config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
1186         config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
1187         config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
1188         config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
1189         config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
1190         config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
1191         config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
1192         config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
1193         config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
1194         config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
1195         config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
1196         config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
1197         config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
1198         config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
1199         config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
1200         config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
1201         config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
1202         config/mips/dec-osf1.h, config/mips/elflorion.h,
1203         config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
1204         config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
1205         config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
1206         config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
1207         config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
1208         config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
1209         config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
1210         config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
1211         config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
1212         config/ns32k/pc532-min.h, config/ns32k/pc532.h,
1213         config/ns32k/sequent.h, config/ns32k/tek6000.h,
1214         config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
1215         config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
1216         config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
1217         config/sparc/rtems.h, config/we32k/we32k-protos.h,
1218         config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
1219         Delete file.
1220
1221 2002-05-24  Richard Henderson  <rth@redhat.com>
1222
1223         * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
1224         * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
1225         * config/i386/i386.c (tls_model_chars): Add leading space.
1226         (tls_symbolic_operand): Don't bias by 1.
1227         (legitimize_address): Don't unbias by 1.
1228
1229 2002-05-24  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
1230
1231         * lcm.c (optimize_mode_switching): Change bb used as indices
1232         to bb->index.
1233
1234 2002-05-24  Richard Henderson  <rth@redhat.com>
1235
1236         * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
1237         of update_life_info_in_dirty_blocks.
1238
1239 2002-05-24  Jakub Jelinek  <jakub@redhat.com>
1240
1241         PR other/6782
1242         * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
1243
1244 2002-05-24  Neil Booth  <neil@daikokuya.demon.co.uk>
1245
1246         PR preprocessor/6780
1247         * cppmacro.c (enter_macro_context): Clear state.angled_headers.
1248
1249 2002-05-24  Jim Blandy  <jimb@redhat.com>
1250
1251         * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
1252         entry with a type code of zero, marking the end of the compilation
1253         unit's macro info.
1254
1255 2002-05-24  Richard Henderson  <rth@redhat.com>
1256
1257         * varasm.c (asm_output_bss): Always output one byte.
1258         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
1259
1260 2002-05-24  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
1261
1262         * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
1263         namespace.
1264
1265 2002-05-24  Andreas Jaeger  <aj@suse.de>
1266
1267         * ggc-page.c (alloc_page): Cast variables of type size_t to
1268         unsigned long, adjust printf format string.
1269         (ggc_alloc): Likewise.
1270         (ggc_print_statistics): Likewise.
1271         (ggc_print_statistics): Correct printf format string for SCALE to
1272         use unsigned long.
1273
1274 2002-05-24  Danny Smith  <dannysmith@users.sourceforge.net>
1275
1276         * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
1277
1278 2002-05-23  Gabriel Dos Reis  <gdr@codesourcery.com>
1279             Zack Weinberg     <zack@codesourcery.com>
1280
1281         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
1282         quoted strings.
1283         * dwarf2out.c (lookup_filename): Properly quote filename in .file
1284         directive in assembly file.
1285         * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
1286         * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
1287         * config/pj/pj.h (ASM_FILE_START): Likewise.
1288         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
1289         * config/avr/avr.c (asm_file_end): Likewise.
1290         * toplev.c (output_quoted_string): Handle possibly signed plain
1291         char.
1292         * toplev.h (output_clean_symbol_name): Declare
1293         * toplev.c (output_clean_symbol_name): Define.
1294         * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
1295         * config/1750a/1750a.h (ASM_FILE_START): Likewise.
1296
1297 2002-05-24  Alan Modra  <amodra@bigpond.net.au>
1298
1299         * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
1300
1301 2002-05-23  Vladimir Makarov  <vmakarov@redhat.com>
1302
1303         * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
1304         of size of unsigned.
1305
1306 2002-05-23  Richard Henderson  <rth@redhat.com>
1307
1308         * configure.in (HAVE_AS_TLS): New test.
1309         * config.in, configure: Rebuild.
1310         * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
1311         (ix86_tls_dialect_string, ix86_tls_dialect): New.
1312         (override_options): Set it.
1313         (tls_model_chars, tls_symbolic_operand): New.
1314         (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
1315         (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
1316         (local_exec_symbolic_operand): New.
1317         (get_pic_label_name): Merge into output_set_got.
1318         (ix86_asm_file_end): Emit pic_label_name if defined.
1319         (legitimate_constant_p, constant_address_p): New.
1320         (legitimate_pic_operand_p): New.
1321         (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
1322         (legitimate_address_p): Likewise.
1323         (ix86_encode_section_info): Rename from i386_; handle tls decls.
1324         (ix86_strip_name_encoding): New.
1325         (get_thread_pointer): New.
1326         (legitimize_address): Handle tls symbols.
1327         (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
1328         Remove UNSPEC_PLT.
1329         (struct machine_function): Add some_ld_name.
1330         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
1331         (print_operand) [&]: Use it.  Handle UNSPEC_TP.
1332         (output_addr_const_extra): New.
1333         (maybe_get_pool_constant): New.
1334         (ix86_split_to_parts): Use it.
1335         (ix86_expand_move): Handle tls symbols.
1336         (ix86_tls_get_addr): New.
1337         * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
1338         (TARGET_OPTIONS): Add tls-dialect.
1339         (CONSTANT_ADDRESS_P): Use new out-of-line function.
1340         (LEGITIMATE_CONSTANT_P): Likewise.
1341         (LEGITIMATE_PIC_OPERAND_P): Likewise.
1342         (TARGET_STRIP_NAME_ENCODING): New.
1343         (ASM_OUTPUT_LABELREF): New.
1344         (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
1345         (OUTPUT_ADDR_CONST_EXTRA): New.
1346         (PREDICATE_CODES): Update.
1347         (ix86_tls_dialect, ix86_tls_dialect_string): New.
1348         * config/i386/i386.md: Regroup and renumber unspec constants.
1349         (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
1350         (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
1351         (tls_global_dynamic, tls_local_dynamic_base): New.
1352         (tls_local_dynamic_once): New.
1353         * config/i386/i386-protos.h: Update.
1354
1355 2002-05-23  Richard Henderson  <rth@redhat.com>
1356
1357         * genemit.c (gen_insn): Print file:lineno comment before function.
1358         (main): likewise.
1359         * gensupport.c (struct queue_elem): Add filename member.
1360         (queue_pattern): Initialize it; update all callers.
1361         (process_include): Don't free filename.
1362         (read_md_rtx): Set read_rtx_filename.
1363
1364 2002-05-23  Hans Boehm  <Hans_Boehm@hp.com>
1365
1366         * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
1367
1368 2002-05-23  Richard Henderson  <rth@redhat.com>
1369
1370         * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
1371
1372 2002-05-23  Richard Henderson  <rth@redhat.com>
1373
1374         * doc/extend.texi (C++98 Thread-Local Edits): Update with
1375         commentary from Mark.
1376
1377 2002-05-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1378
1379         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
1380         Use FOR_EACH_BB macros to iterate over basic block chain.
1381         * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
1382         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
1383         Likewise.
1384         * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
1385         find_unreachable_blocks, create_edge_list, verify_edge_list,
1386         remove_fake_edges, add_noreturn_fake_exit_edges,
1387         flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
1388         Likewise.
1389         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
1390         find_sub_basic_blocks): Likewise.
1391         * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
1392         Likewise.
1393         * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
1394         Likewise.
1395         * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
1396         Likewise.
1397         * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
1398         commit_edge_insertions, commit_edge_insertions_watch_calls,
1399         print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
1400         * combine.c (combine_instructions, reg_dead_at_p): Likewise.
1401         * conflict.c (conflict_graph_compute): Likewise.
1402         * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
1403         df_modified_p, df_refs_unlink, df_dump): Likewise.
1404         * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
1405         * final.c (compute_alignments): Likewise.
1406         * flow.c (update_life_info, update_life_info_in_dirty_blocks,
1407         delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
1408         count_or_remove_death_notes): Likewise.
1409         * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
1410         compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
1411         classic_gcse, compute_transp, cprop, compute_pre_data,
1412         compute_transpout, invalidate_nonnull_info,
1413         delete_null_pointer_checks_1, delete_null_pointer_checks,
1414         compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
1415         compute_store_table, build_store_vectors, store_motion): Likewise.
1416         * global.c (global_conflicts, mark_elimination): Likewise.
1417         * graph.c (print_rtl_graph_with_bb): Likewise.
1418         * haifa-sched.c (sched_init): Likewise.
1419         * ifcvt.c (if_convert): Likewise.
1420         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
1421         compute_available, compute_nearerout, compute_rev_insert_delete,
1422         optimize_mode_switching): Likewise.
1423         * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
1424         * predict.c (estimate_probability, note_prediction_to_br_prob,
1425         propagate_freq, counts_to_freqs, expensive_function_p,
1426         estimate_bb_frequencies): Likewise.
1427         * profile.c (instrument_edges, get_exec_counts,
1428         compute_branch_probabilities, compute_checksum, branch_prob,
1429         find_spanning_tree): Likewise.
1430         * recog.c (split_all_insns, peephole2_optimize): Likewise.
1431         * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
1432         Likewise.
1433         * regclass.c (scan_one_insn, regclass): Likewise.
1434         * regmove.c (mark_flags_life_zones, regmove_optimize,
1435         record_stack_memrefs): Likewise.
1436         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
1437         * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
1438         * resource.c (find_basic_block): Likewise.
1439         * sched-ebb.c (schedule_ebbs): Likewise.
1440         * sched-rgn.c (is_cfg_nonregular, build_control_flow,
1441         find_single_block_region, find_rgns, schedule_insns)
1442         * sibcall.c (optimize_sibling_and_tail_recursive_call)
1443         * ssa-ccp.c (optimize_unexecutable_edges,
1444         ssa_ccp_df_delete_unreachable_insns): Likewise.
1445         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
1446         * ssa.c (find_evaluations, compute_dominance_frontiers_1,
1447         rename_block, convert_to_ssa, compute_conservative_reg_partition,
1448         compute_coalesced_reg_partition, rename_equivalent_regs,
1449         convert_from_ssa): Likewise.
1450         * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
1451         process_for_unwind_directive): Likewise.
1452
1453         * df.c (FOR_ALL_BBS): Removed.
1454         * gcse.c (struct null_pointer_info): Type of current_block field
1455         changed.
1456         (struct reg_avail_info): Type of last_bb field changed.
1457         * config/ia64/ia64.c (block_num): Removed.
1458         (need_copy_state): Type changed.
1459         (last_block): New.
1460
1461 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
1462
1463         * cppinit.c (mark_named_operators): Split out from init_builtins.
1464         (cpp_finish_options): Call it from here instead.
1465
1466 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
1467
1468         * builtin-attrs.def: Update copyright years.
1469         (ATTR_NONNULL): New attribute identifier.
1470         (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
1471         attribute tree lists.
1472         (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
1473         format operand.
1474         (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
1475         (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
1476         attribute lists.  Chain the appropriate nonnull attribute.
1477         * c-format.c (check_format_arg): Remove null format string
1478         warning.
1479         * testsuite/gcc.dg/format/null-1.c: New test.
1480
1481 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1482
1483         * Makefile.in (ADAC): Define.
1484         (SYSLIBS): Define.
1485         (.SUFFIXES): Move before language makefile fragments.
1486         (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
1487
1488 2002-05-23  Mark Mitchell  <mark@codesourcery.com>
1489
1490         * varasm.c (make_decl_rtl): Don't allow weak variables to be
1491         placed in common.
1492
1493 Thu May 23 19:43:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
1494
1495         * cfg.c (dump_flow_info): Print results of
1496         maybe_hot/probably_never_executed predicates.
1497         * toplev.c (open_dump_file): Print function frequency.
1498
1499 2002-05-23  David S. Miller  <davem@redhat.com>
1500
1501         * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
1502         regsets.
1503
1504 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
1505
1506         * c-common.c (warn_nonnull): Declare.
1507         (c_common_attribute_table): Add "nonnull" attribute.
1508         (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
1509         check_nonnull_arg, get_nonnull_operand, check_function_arguments,
1510         check_function_arguments_recurse): New functions.
1511         * c-common.h (warn_nonnull): Declare extern.
1512         (check_function_arguments, check_function_arguments_recurse): New
1513         prototypes.
1514         * c-decl.c (c_decode_option): Add -Wnonnull option.
1515         * c-format.c (set_Wformat): Set warn_nonnull if enabling
1516         format checking.
1517         (format_check_context): New structure.
1518         (check_format_info_recurse): Remove recursion and rename to...
1519         (check_format_arg): ...this.  Update comment.
1520         (check_format_info): Use check_function_arguments_recurse.
1521         * c-typeck.c (build_function_call): Call check_function_arguments
1522         instead of check_function_format.
1523         * doc/extend.texi: Document "nonnull" attribute.
1524         * doc/invoke.texi: Docuemnt -Wnonnull option.
1525         * testsuite/gcc.dg/nonnull-1.c: New test.
1526         * testsuite/gcc.dg/nonnull-2.c: New test.
1527
1528 2002-05-23  David S. Miller  <davem@redhat.com>
1529
1530         * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
1531         * cfgcleanup.c (cleanup_cfg): If it is set do not
1532         attempt to delete trivially dead insns.
1533         * except.c (finish_eh_generation): Pass it to cleanup_cfg.
1534         * toplev.c (rest_of_compilation): Document non-trivial aspect
1535         the RTL before optimize_save_area_alloca is run.
1536
1537 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
1538
1539         * c-lex.c (indent_level): Remove.
1540         (cb_file_change, c_lex): Remove indent level handling.
1541         * c-lex.h (indent_level): Remove.
1542         * input.h (struct file_stack): Remove indent_level.
1543         * toplev.c (push_srcloc): Remove indent_level handling.
1544
1545 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
1546
1547         PR target/6753
1548         * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
1549         of x in constraints for clarity.
1550         (sse_mov?fcc split): abort if op2 == op3.
1551         (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
1552         sse_movsfcc_const0_4): Add earlyclobber.
1553         (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
1554         sse_movdfcc_const0_4): Likewise.  Use DFmode, not SFmode.
1555         Use Y instead of x in constraints.
1556
1557 2002-05-23  Richard Henderson  <rth@redhat.com>
1558
1559         * doc/extend.texi (C99 Thread-Local Edits): New subsection.
1560         (C++98 Thread-Local Edits): New subsection.
1561
1562         * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
1563         (ix86_arch): Set type to enum processor_type.
1564
1565         * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
1566         LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
1567
1568 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
1569
1570         * configure.in: Fix as version test for binutils 2.12.1 releases
1571         (without dates).
1572         * configure: Rebuilt.
1573
1574 2002-05-23  Richard Henderson  <rth@redhat.com>
1575
1576         * config/i386/i386.c (get_pic_label_name): New.
1577         (load_pic_register): Remove.
1578         (output_set_got): New.
1579         (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
1580         * config/i386/i386.md (UNSPEC_SET_GOT): New.
1581         (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
1582         (prologue_set_got, prologue_get_pc): Remove.
1583         (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
1584         (builtin_setjmp_receiver): Use gen_set_got.
1585         * config/i386/i386-protos.h: Update.
1586
1587 Thu May 23 09:22:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
1588
1589         * gcse.c (hash_expr): Do not use alias set for hashing.
1590
1591 2002-05-22  Kevin Buettner  <kevinb@redhat.com>
1592
1593         * dbxout.c (dbxout_class_name_qualifiers): New function.
1594         (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
1595
1596 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
1597
1598         * cpperror.c (_cpp_begin_message): No special casing
1599         of CPP_FATAL_LIMIT.
1600         * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
1601         (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
1602         * cpplib.c (do_include_common): Use DL_ERROR.
1603         * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
1604         (DL_ICE): Renumber.
1605         * fix-header.c (read_scan_file): Update.
1606
1607 2002-05-22  Richard Henderson  <rth@redhat.com>
1608
1609         * config/i386/i386.c (ix86_expand_call): New function, extracted
1610         from md call patterns.  Add pic_offset_table_rtx to
1611         CALL_INSN_FUNCTION_USAGE when needed.
1612         * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
1613         (call_value_pop, call_value, untyped_call): Likewise.
1614         (call_exp, call_value_exp): Remove.
1615         * config/i386/i386-protos.h: Update.
1616
1617 2002-05-22  Richard Henderson  <rth@redhat.com>
1618
1619         * varasm.c (default_section_type_flags): Check for VAR_DECL
1620         before using DECL_THREAD_LOCAL.
1621
1622 2002-05-22  David Edelsohn  <edelsohn@gnu.org>
1623
1624         * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
1625         (STARTFILE_SPEC): Delete PE crt0.o.
1626         * config/rs6000/aix51.h: Same.
1627         * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
1628         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
1629         function descriptor symbol.  Use RS6000_OUTPUT_BASENAME.
1630         (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
1631         * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
1632
1633 2002-05-22  Richard Henderson  <rth@redhat.com>
1634
1635         * varasm.c (default_section_type_flags): Handle tls data and
1636         default sections.
1637         (default_unique_section): Handle tls sections.
1638
1639 2002-05-23  Alan Modra  <amodra@bigpond.net.au>
1640
1641         * configure.in (CROSS): Define NATIVE_CROSS.
1642         * configure: Regenerate.
1643         * gcc.c (STARTFILE_PREFIX_SPEC): Define.
1644         (startfile_prefix_spec): New var.
1645         (static_specs): Add startfile_prefix_spec.
1646         (do_spec_2): Split out from..
1647         (do_spec): ..here.
1648         (main): Process startfile_prefix_spec.
1649         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
1650         dynamic linker.
1651         (STARTFILE_PREFIX_SPEC): Define.
1652         (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
1653         absolute paths.
1654
1655 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
1656
1657         * cpperror.c: Fix formatting.
1658         * cppexp.c: Likewise.
1659         * cppfiles.c: Likewise.
1660         * cpphash.c: Likewise.
1661         * cpphash.h: Likewise.
1662         * cppinit.c: Likewise.
1663         * cpplex.c: Likewise.
1664         * cpplib.c: Likewise.
1665         * cppmacro.c: Likewise.
1666         * cppmain.c: Likewise.
1667         * cppspec.c: Likewise.
1668
1669 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
1670
1671         * combine.c (force_to_mode): Use gen_int_mode.
1672         Don't clear CONST_INT bits outside of mode.
1673
1674 2002-05-22  Richard Henderson  <rth@redhat.com>
1675
1676         * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
1677         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
1678
1679 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
1680
1681         PR c/6643
1682         * emit-rtl.c (widen_memory_access): Only call compare_tree_int
1683         if DECL_SIZE_UNIT is INTEGER_CST.
1684
1685 2002-05-22  Richard Henderson  <rth@redhat.com>
1686
1687         * flow.c (life_analysis): Delete broken reg_label check.
1688
1689 2002-05-22  Richard Henderson  <rth@redhat.com>
1690
1691         * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
1692         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
1693
1694 Wed May 22 18:39:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
1695
1696         * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
1697         (embed-bb.c): New rule.
1698         * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
1699         * config/sh/embed_bb.c: Delete.
1700
1701 Wed May 22 18:25:29 2002  J"orn Rennecke <joern.rennecke@superh.com>
1702
1703         * c-common.c (cb_register_builtins): Don't indent '#' of #define.
1704
1705 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
1706
1707         * config/h8300/h8300.md (*andorqi3): New.
1708
1709 2002-05-22  Neil Booth  <neil@daikokuya.demon.co.uk>
1710
1711         PR preprocessor/6517
1712         * Makefile.in: Update.
1713         * c-common.c (c_common_post_options): Add preprocessor
1714         errors to the error count.
1715         * c-lang.c (c_post_options): Kill.
1716         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
1717         * hooks.h: Add header guards.
1718         * langhooks-def.h: Include hooks.h.
1719         (LANG_HOOKS_POST_OPTIONS): Update.
1720         * langhooks.h (struct lang_hooks): Update post_options.
1721         * toplev.c (parse_options_and_default_flags): Update.
1722 objc:
1723         * objc-lang.c (objc_post_options): Kill.
1724         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
1725
1726 2002-05-21  Bruce Korb  <bkorb@gnu.org>
1727
1728         * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
1729         * fixinc/inclhack.def(thread_keyword): use c_fix = format.
1730         * fixinc/fixincl.x: regen.
1731
1732 2002-05-21  Kazu Hirata  <kazu@cs.umass.edu>
1733
1734         * cfgbuild.c: Fix formatting.
1735         * cfg.c: Likewise.
1736         * cfgcleanup.c: Likewise.
1737         * cfglayout.c: Likewise.
1738         * cfgloop.c: Likewise.
1739         * cfgrtl.c: Likewise.
1740
1741 2002-05-21  Richard Henderson  <rth@redhat.com>
1742
1743         * c-common.h (enum rid): Add RID_THREAD.
1744         * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
1745         (grokdeclarator): Grok __thread.
1746         * c-parse.in (reswords): Add __thread.
1747         (rid_to_yy): Add RID_THREAD.
1748
1749         * tree.h (DECL_THREAD_LOCAL): New.
1750         (struct tree_decl): Add thread_local_flag.
1751         * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
1752         * tree.c (staticp): TLS variables are not static.
1753
1754         * target-def.h (TARGET_HAVE_TLS): New.
1755         * target.h (have_tls): New.
1756         * output.h (SECTION_TLS): New.
1757         * varasm.c (assemble_variable): TLS variables can't be common for now.
1758         (default_section_type_flags): Handle .tdata and .tbss.
1759         (default_elf_asm_named_section): Handle SECTION_TLS.
1760         (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
1761
1762         * flags.h (flag_tls_default): Declare.
1763         * toplev.c (flag_tls_default): Define.
1764         (display_help): Display help for it.
1765         (decode_f_option): Set it.
1766
1767         * doc/extend.texi (Thread-Local): New node describing language-level
1768         thread-local storage.
1769         * doc/invoke.texi (-ftls-model): Document.
1770
1771         * fixinc/inclhack.def (thread_keyword): New.
1772         * fixinc/fixincl.x: Rebuild.
1773
1774 2002-05-21  Jeffrey A Law  <law@redhat.com>
1775
1776         * optabs.c (expand_binop): For double-word integer multiplies,
1777         do not compute intermediate results into something that is
1778         not a register (such as a SUBREG or MEM).
1779
1780         * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
1781         (ix86_sched_reorder): Make sure to initialize scheduling
1782         data even when there's only one insn in the ready queue.
1783
1784 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
1785
1786         * genautomata.c (reserv_sets_hash_value): Fix a typo.
1787
1788 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
1789
1790         * genautomata.c (reserv_sets_hash_value): Define hash_value as
1791         set_el_t.  Transform the hash value into unsigned.
1792         (output_cycle_reservs): Fix bug with output of repeated `nothing'.
1793         (transform_3): Add code to process `(A,B)+(D,E)'.
1794
1795 2002-05-21  NIIBE Yutaka  <gniibe@m17n.org>
1796
1797         * reload1.c (do_output_reload): Run delete_output_reload
1798         only if optimizing.
1799
1800 2002-05-21  Roger Sayle  <roger@eyesopen.com>
1801
1802         PR middle-end/6600
1803         * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
1804         larger than INTEGER_CST.  (store_by_pieces_1): Use it here...
1805         (can_store_by_pieces): ... and here to limit the largest mode used.
1806         Add a comment to document this function.
1807
1808 2002-05-21  Richard Henderson  <rth@redhat.com>
1809
1810         * flow.c (life_analysis): Fix test for deleted label.
1811
1812 2002-05-21  Neil Booth  <neil@daikokuya.demon.co.uk>
1813
1814         * doc/tm.texi: Fix typo.
1815
1816 2002-05-21  Zack Weinberg  <zack@codesourcery.com>
1817
1818         * c-common.c (c_common_init): Set options->unsigned_char from
1819         flag_signed_char.
1820         (cb_register_builtins): Define __STRICT_ANSI__ and
1821         __CHAR_UNSIGNED__ here...
1822         * cppinit.c (init_builtins): Not here.
1823         (cpp_create_reader): unsigned_char option defaults to 0, not
1824         !DEFAULT_SIGNED_CHAR.
1825         (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
1826         and -funsigned-char.
1827
1828         * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
1829         * cpphash.c (_cpp_init_hashtable): Don't set it.
1830         * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
1831         directly.  Clarify comment.
1832
1833 2002-05-21  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1834
1835         * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
1836         neighbouring basic blocks.  Use ENTRY_BLOCK_PTR->next_bb instead of
1837         BASIC_BLOCK (0).  Use EXIT_BLOCK_PTR->prev_bb instead of
1838         BASIC_BLOCK (n_basic_blocks - 1).
1839         * cfganal.c (can_fallthru, flow_call_edges_add,
1840         flow_preorder_transversal_compute): Too.
1841         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
1842         find_sub_basic_blocks): Too.
1843         * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
1844         * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
1845         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
1846         * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
1847         * combine.c (this_basic_block): Type changed to basic_block.
1848         (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
1849         nonzero_bits, num_sign_bit_copies, get_last_value_validate,
1850         get_last_value, distribute_notes, distribute_links): Too.
1851         * final.c (compute_alignments): Too.
1852         * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
1853         * function.c (thread_prologue_and_epilogue_insns): Too.
1854         * gcse.c (compute_code_hoist_vbeinout): Too.
1855         * global.c (build_insn_chain): Too.
1856         * ifcvt.c (find_if_block, find_cond_trap): Too.
1857         * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
1858         * regmove.c (regmove_optimize): Too.
1859         * resource.c (find_basic_block): Too.
1860         * sched-ebb.c (schedule_ebbs): Too.
1861         * ssa-dce.c (find_control_dependence, find_pdom): Too.
1862
1863 2002-05-21  Andreas Jaeger  <aj@suse.de>
1864
1865         * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
1866
1867 2002-05-21  Richard Henderson  <rth@redhat.com>
1868
1869         * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
1870         unspec names, not numbers.
1871
1872 2002-05-21  Joseph S. Myers  <jsm28@cam.ac.uk>
1873
1874         * doc/sourcebuild.texi: Mention snapshot-README and
1875         snapshot-index.html as needing updating for new front ends.
1876
1877 2002-05-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1878
1879         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
1880         disabling checking, and avoid multiple evaluation of RTX.
1881
1882 2002-05-21  Richard Earnshaw  <rearnsha@arm.com>
1883
1884         * bitmap.c (bitmap_find_bit): Return early if we have the correct
1885         element cached.
1886
1887 Tue May 21 10:51:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
1888
1889         * profile.c (gen_edge_profiler):  Set alias set before the memory is
1890         used.
1891
1892 2002-05-20  David S. Miller  <davem@redhat.com>
1893
1894         * cselib.c (max_value_regs): New.
1895         (cselib_lookup, cselib_invalidate_regno): Initialize it when
1896         adding new entries to the REG_VALUES table and we are dealing with
1897         a hard register.
1898         (clear_table): Initialize it.
1899         (cselib_invalidate_regno): Use it to determine which hard
1900         registers to scan when mode is not VOIDmode.
1901
1902 2002-05-20  Duraid Madina   <duraid@fl.net.au>
1903
1904         * tradcpp.c (fixup_newlines): Use old-style function header.
1905
1906 2002-05-20  Krister Walfridsson  <cato@df.lth.se>
1907
1908         * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
1909
1910 2002-05-20  H.J. Lu  (hjl@gnu.org)
1911
1912         Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
1913
1914         * config/mips/mips.h (DFMODE_NAN): Defined.
1915         (SFMODE_NAN): Likewise.
1916
1917 2002-05-20  Dale Johannesen  <dalej@apple.com>
1918
1919         * combine.c (cant_combine_insn_p):  Back out my
1920         previous patch.
1921
1922 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
1923
1924         * params.c: Fix formatting.
1925         * params.h: Likewise.
1926         * predict.c: Likewise.
1927         * prefix.c: Likewise.
1928         * print-rtl.c: Likewise.
1929         * print-tree.c: Likewise.
1930         * profile.c: Likewise.
1931
1932 2002-05-20  H.J. Lu  (hjl@gnu.org)
1933
1934         * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
1935
1936 2002-05-20  Nick Clifton  <nickc@cambridge.redhat.com>
1937
1938         * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
1939         switches straight on to the assembler, do not abbreviate them.
1940         * config/arm/elf.h (ASM_SPEC): As above.
1941         * config/arm/semi.h (ASM_SPEC): As above.
1942         * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
1943         * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
1944         -mcpu=xscale on to the assembler by default.
1945         * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
1946
1947 2002-05-20  Richard Henderson  <rth@redhat.com>
1948
1949         * cse.c (canon_hash): Reorder do_not_record test.  Always
1950         allow pic_offset_table_rtx.
1951
1952 2002-05-19  Toon Moene  <toon@moene.indiv.nluug.nl>
1953
1954         * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
1955         (expand_binop): Ditto (3 times).
1956
1957 2002-05-19  Mark Mitchell  <mitchell@doubledemon.codesourcery.com>
1958
1959         * Makefile.in (distclean): Remove QMTest stuff.
1960         (QMTEST_PATH): New variable.
1961         (QMTESTFLAGS): Likewise.
1962         (QMTESTRUNFLAGS): Likewise.
1963         (QMTEST): Likewise.
1964         (QMTEST_GPP_TESTS): Likewise.
1965         (QMTEST_DIR): Likewise.
1966         (QMTEST_DIR/context): New target.
1967         (qmtest-g++): Likeise.
1968         (qmtest-gui): Likewise.
1969         (QMTEST_DIR/gpp-expected.qmr): Likewise.
1970
1971 2002-05-19  Aldy Hernandez  <aldyh@redhat.com>
1972
1973         * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
1974         an altivec register if TARGET_ALTIVEC.
1975
1976         * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
1977         to ALTIVEC_VECTOR_MODE.
1978         (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
1979         (rs6000_va_arg): Vectors may go in registers if they are not
1980         altivec vectors.
1981
1982 2002-05-19  Kazu Hirata  <kazu@cs.umass.edu>
1983
1984         * protoize.c: Fix formatting.
1985
1986 2002-05-19  Richard Henderson  <rth@redhat.com>
1987
1988         * gensupport.c (init_include_reader): Merge into ...
1989         (process_include): ... here.  Simplify composite path creation.
1990         Plug memory leaks.  Fix file/line number tracking.  Do not
1991         process_define_cond_exec.  Return void.
1992         (process_rtx): Don't check process_include return value.
1993
1994 2002-05-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1995
1996         * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
1997         fields.
1998         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
1999         traversing basic block chain.
2000         (create_basic_block_structure, create_basic_block): Declaration changed.
2001         (link_block, unlink_block): Declare.
2002         * cfg.c (entry_exit_blocks): Initialize new fields.
2003         (link_block, unlink_block): New.
2004         (expunge_block_nocompact): Unlink basic block.
2005         (dump_flow_info): Print prev_bb/next_bb fields.
2006         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
2007         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
2008         * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
2009         * cfgrtl.c (create_basic_block_structure, create_basic_block,
2010         split_block, force_nonfallthru_and_redirect, split_edge): Modified.
2011         (verify_flow_info): Check that list agrees with numbering.
2012
2013 2002-05-19  Neil Booth  <neil@daikokuya.demon.co.uk>
2014
2015         * c-common.c (preprocessing_asm): New macro.
2016         * c-lex.h (builtin_define, builtin_assert): Use pfile.
2017 doc:
2018         * tm.texi: Update.
2019 config/alpha:
2020         * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
2021         (CPP_SPEC): Simplify.
2022         (TARGET_CPU_CPP_BUILTINS): Update.
2023         * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
2024         (CPP_SPEC): Simplify.
2025         * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
2026         (TARGET_OS_CPP_BUILTINS): Update.
2027         * osf.h (CPP_XFLOAT_SPEC): Kill.
2028         (TARGET_OS_CPP_BUILTINS): Update.
2029         (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
2030         * osf5.h (CPP_XFLOAT_SPEC): Kill.
2031         * vms.h (CPP_SUBTARGET_SPEC): Kill.
2032         (TARGET_OS_CPP_BUILTINS): Update.
2033
2034 2002-05-19  Richard Henderson  <rth@redhat.com>
2035
2036         * varasm.c (default_binds_local_p): Fix typo.
2037
2038 2002-05-19  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2039
2040         * config/avr/avr.c (machine_dependent_reorg): Sign extend the
2041         CONST_INT operand to the correct mode after adding 1 to it.
2042
2043 2002-05-19  Mark Mitchell  <mark@codesourcery.com>
2044
2045         * config.gcc (powerpc-wrs-windiss*): New target.
2046
2047 2002-05-19  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2048
2049         * config/rs6000/rs6000.md (ashrdi3_no_power): New.
2050         (ashrdi3): Use it.
2051
2052 2002-05-18  Mark Mitchell  <mark@codesourcery.com>
2053
2054         * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
2055         alphasort.
2056         * config.in: Regenerated.
2057         * configure: Regenerated.
2058
2059 2002-05-19  Richard Henderson  <rth@redhat.com>
2060
2061         * target-def.h (TARGET_BINDS_LOCAL_P): New.
2062         * target.h (struct gcc_target): Move boolean fields to the end.
2063         Add binds_local_p.
2064         * varasm.c (default_binds_local_p): New.
2065         * output.h: Declare it.
2066
2067         * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
2068         * config/cris/cris.c (cris_encode_section_info): Likewise.
2069         * config/i386/i386.c (i386_encode_section_info): Likewise.
2070         * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
2071         * config/sh/sh.c (sh_encode_section_info): Likewise.
2072
2073         * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
2074         (TARGET_BINDS_LOCAL_P): New.
2075
2076 2002-05-19  Richard Henderson  <rth@redhat.com>
2077
2078         * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
2079         FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
2080         MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
2081
2082         * toplev.c (display_help): Kill -a -ax help.
2083
2084         * config/1750a/1750a.h, config/alpha/alpha.h,
2085         config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
2086         config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
2087         config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
2088         (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
2089
2090         * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
2091         * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
2092
2093         * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
2094         (ix86_output_function_block_profiler): Kill.
2095         * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
2096         (m68hc11_function_block_profiler): Kill.
2097         * config/m68hc11/m68hc11-protos.h: Update.
2098         * config/m88k/m88k.c (output_block_profiler): Kill.
2099         (output_function_block_profiler): Kill.
2100         * config/m88k/m88k-protos.h: Update.
2101
2102 2002-05-19  Richard Henderson  <rth@redhat.com>
2103
2104         * system.h (STRIP_NAME_ENCODING): Poison it.
2105         * output.h (STRIP_NAME_ENCODING): Remove.
2106         (default_strip_name_encoding): Declare.
2107         * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
2108         * target.h (strip_name_encoding): New.
2109         * varasm.c (default_strip_name_encoding): New.
2110
2111         * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
2112         config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
2113         config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
2114         config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
2115         config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
2116         config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
2117         config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
2118         config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
2119         config/v850/v850.h: Use the hook, not the macro.
2120
2121         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
2122         config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
2123         config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
2124         config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
2125         config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
2126         config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
2127         config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
2128         config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
2129         config/v850/v850.c, config/v850/v850.h:
2130         Move STRIP_NAME_ENCODING to out-of-line function and add
2131         TARGET_STRIP_NAME_ENCODING.
2132
2133         * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
2134         config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
2135         with TARGET_STRIP_NAME_ENCODING referencing existing function;
2136         make function static.
2137
2138         * xcoffout.c: Include target.h
2139         * Makefile.in (xcoffout.o): Update.
2140
2141         * config/avr/avr.c (avr_encode_section_info): Correct prototype.
2142         * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
2143         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
2144         reloc argument unused.
2145         * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
2146
2147         * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
2148         STRIP_NAME_ENCODING docs.
2149
2150 2002-05-19  Andreas Jaeger  <aj@suse.de>
2151
2152         * gengenrtl.c: Add prototype for excluded_rtx.
2153
2154         * real.h: Add prototype for exact_real_truncate.
2155
2156 2002-05-18  Richard Henderson  <rth@redhat.com>
2157
2158         * system.h (ENCODE_SECTION_INFO): Poison it.
2159         * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
2160         * target.h (encode_section_info): New.
2161         * varasm.c (make_decl_rtl, output_constant_def): Use it.
2162         * hooks.c (hook_tree_int_void): New.
2163         * hooks.h: Declare it.
2164
2165         * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
2166         config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
2167         config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
2168         config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
2169         config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
2170         config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
2171         config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
2172         config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
2173         config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
2174         config/mcore/mcore-protos.h, config/mcore/mcore.c,
2175         config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
2176         config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
2177         config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
2178         config/stormy16/stormy16.c, config/stormy16/stormy16.h:
2179         Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
2180         referencing existing function.  Make function static.
2181
2182         * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
2183         config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
2184         config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
2185         config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
2186         config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
2187         config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
2188         config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
2189         config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
2190         config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
2191         config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
2192         config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
2193         config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
2194         config/xtensa/xtensa.c, config/xtensa/xtensa.h:
2195         Move ENCODE_SECTION_INFO to out-of-line function and add
2196         TARGET_ENCODE_SECTION_INFO.
2197
2198         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
2199         (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
2200
2201         * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
2202         from SUBTARGET_*
2203         (switch_to_section): Replace in_rdata case with in_readonly_data.
2204
2205         * config/h8300/h8300.c (h8300_encode_label): Make static.
2206         * config/h8300/h8300-protos.h: Update.
2207
2208         * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
2209         from rs6000_encode_section_info; make static.
2210         (rs6000_xcoff_encode_section_info): New.
2211
2212         * config/v850/v850.c (v850_encode_data_area): Make static.
2213         * config/v850/v850-protos.h: Update.
2214
2215         * config/vax/vax.c: Include flags.h.
2216         (vms_select_section): Fix typo.
2217
2218         * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
2219         ENCODE_SECTION_INFO docs.
2220
2221 2002-05-18  Richard Henderson  <rth@redhat.com>
2222
2223         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
2224         REGISTER_TARGET_PRAGMAS.
2225         * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
2226
2227         * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
2228
2229 2002-05-18  Richard Henderson  <rth@redhat.com>
2230
2231         * system.h (SELECT_RTX_SECTION): Poison.
2232         * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
2233         * target.h (select_rtx_section): New.
2234         * varasm.c (output_constant_pool): Use it.
2235         (default_select_rtx_section, default_elf_select_rtx_section): New.
2236         * output.h: Declare them.
2237
2238         * config/darwin.h (SELECT_RTX_SECTION): Move ...
2239         * config/darwin.c (machopic_select_rtx_section): ... here.
2240         * config/darwin-protos.h: Update.
2241
2242         * config/nextstep.h (SELECT_RTX_SECTION): Move ...
2243         * config/nextstep.c (machopic_select_rtx_section): ... here.
2244         (nextstep_select_section): Rename variable to avoid macro clash.
2245         * config/nextstep-protos.h: Update.
2246
2247         * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
2248         config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
2249         config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
2250         config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
2251         config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
2252         config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
2253         config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
2254         config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
2255         config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
2256         (SELECT_RTX_SECTION): Remove.
2257
2258         * config/darwin.h, config/elfos.h, config/nextstep.h,
2259         config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
2260         config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
2261         config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
2262         config/sparc/lynx.h, config/xtensa/xtensa.c
2263         (TARGET_ASM_SELECT_RTX_SECTION): New.
2264
2265         * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
2266         * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
2267         * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
2268         * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
2269         (ia64_aix_select_rtx_section): New.
2270         * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
2271         redefining.
2272         * config/mips/mips.c (mips_select_rtx_section): Make static.
2273         Support ELF SHF_MERGE features.
2274         * config/mips/mips-protos.h: Update.
2275         * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
2276         * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
2277         (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
2278         make static, fall back to default_elf_select_rtx_section.
2279         * config/rs6000/rs6000-protos.h: Update.
2280         * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
2281         * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
2282         * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
2283         * config/romp/romp.c (romp_select_rtx_section): New.
2284         * config/s390/s390.c (s390_select_rtx_section): New.
2285         * config/xtensa/xtensa.c: Include output.h.  Shuffle local function
2286         declarations before target macro definition.
2287         (xtensa_emit_call): Use static buffer.
2288         (xtensa_select_rtx_section): New.
2289         * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
2290         (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
2291         (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
2292
2293         * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
2294         SELECT_RTX_SECTION docs.
2295
2296 Sun May 19 00:24:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
2297
2298         * i386.md (movsi/movdi): Fix template.
2299         (sse2 patterns): Set attributes consistently.
2300
2301         * i386.md (pushqi2, ashrqi_*): Fix constraint.
2302
2303 2002-05-18  Toon Moene  <toon@moene.indiv.nluug.nl>
2304
2305         * optabs.c (complex_part_zero_p): New.
2306         * (expand_cmplxdiv_straight): Use it.
2307         * (expand_cmplxdiv_wide): Ditto.
2308         * (expand_binop): Ditto.
2309
2310 2002-05-18  Richard Henderson  <rth@redhat.com>
2311
2312         * final.c (HAVE_READONLY_DATA_SECTION): New.
2313         (shorten_branches): Use it instead of ifdefs.
2314         * varasm.c (enum in_section): Add in_readonly_data.
2315         (text_section, data_section): Tidy.
2316         (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
2317
2318         * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
2319         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
2320         (READONLY_DATA_SECTION): Don't undef.
2321
2322         * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
2323         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
2324         config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
2325
2326         * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
2327         config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
2328         config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
2329         config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
2330
2331         * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
2332         config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
2333         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
2334         config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
2335         config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
2336         config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
2337         config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
2338         config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
2339         CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
2340
2341         * config/elfos.h, config/netware.h, config/1750a/1750a.h,
2342         config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
2343         config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
2344         config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
2345         config/pa/pa64-hpux.h, config/sparc/litecoff.h
2346         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
2347
2348         * config/elfos.h, config/netware.h, config/svr3.h,
2349         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
2350         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
2351         config/h8300/h8300.h, config/i386/i386-interix.h,
2352         config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
2353         config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
2354
2355         * config/elfos.h, config/netware.h, config/svr3.h,
2356         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
2357         config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
2358         config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
2359         config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
2360
2361         * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
2362         config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
2363         config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
2364         config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
2365         config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
2366         config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
2367         config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
2368         config/rs6000/sysv4.h, config/v850/v850.h
2369         (EXTRA_SECTIONS): Remove in_const/in_rdata.
2370         (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
2371
2372         * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
2373         config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
2374         config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
2375         config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
2376         * config/alpha/alpha.c (alpha_start_function): Likewise.
2377         (alpha_write_linkage): Likewise.
2378         * config/m32r/m32r.c (m32r_select_section): Likewise.
2379         * config/m88k/m88k.c (m88k_select_section): Likewise.
2380         * config/mips/mips.c (mips_select_rtx_section): Likewise.
2381         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
2382         (rs6000_elf_select_section): Likewise.
2383         * config/v850/v850.c (v850_select_section): Likewise.
2384
2385         * config/1750a/1750a.h, config/i860/sysv3.h
2386         (READONLY_DATA_SECTION_ASM_OP): New.
2387         READONLY_DATA_SECTION_ASM_OP.
2388         * config/i386/interix.c, config/i386/winnt.c
2389         (i386_pe_unique_section): Always use .rdata prefix.
2390         * config/pa/som.h (readonly_data): Always switch to read-only section.
2391         (READONLY_DATA_SECTION): Predicate on flag_pic.
2392         * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
2393         * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
2394         (READONLY_DATA_SECTION): Update.
2395
2396 2002-05-18  Jason Thorpe  <thorpej@wasabisystems.com>
2397
2398         * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
2399         is used without -Wformat.
2400         * c-common.h (warn_format_zero_length): Declare extern.
2401         * c-decl.c (warn_options): Add "format-zero-length".
2402         * c-format.c (warn_format_zero_length): Declare.
2403         (set_Wformat): Set warn_format_zero_length for -Wformat.
2404         (check_format_info): Only warn about zero-length formats if
2405         warn_format_zero_length is true.  Include the format type
2406         name in the warning message.
2407         * doc/invoke.texi: Document -Wformat-zero-length.
2408         * testsuite/gcc.dg/format/zero-length-1.c: New test.
2409
2410 2002-05-18  Kazu Hirata  <kazu@cs.umass.edu>
2411
2412         * timevar.c: Fix formatting.
2413         * tlink.c: Likewise.
2414         * toplev.c: Likewise.
2415         * tree-dump.c: Likewise.
2416         * tree-inline.c: Likewise.
2417
2418 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
2419
2420         * cppinit.c (cpp_post_options): If preprocessed, turn off
2421         traditional.  If traditional, turn off column numbers.
2422         * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
2423         * cpptrad.c (handle_newline): Update line_base.
2424         (skip_comment): Handle -Wcomment.
2425
2426 2002-05-17  Zack Weinberg  <zack@codesourcery.com>
2427
2428         * cppinit.c (struct builtin): Remove unused fields.
2429         (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
2430         (operator_array): New - was second half of builtin_array.
2431         (init_builtins): Simplify loop over builtin_array/operator_array.
2432
2433 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
2434
2435         * defaults.h (UNIQUE_SECTION): Remove.
2436         * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
2437
2438 2002-05-17  Richard Henderson  <rth@redhat.com>
2439
2440         * expr.c (init_expr_once): Don't use start/end_sequence.
2441         Use rtx_alloc instead of emit_insn.
2442         * toplev.c (lang_dependent_init): Run init_expr_once here ...
2443         (lang_independent_init): ... not here.
2444
2445 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
2446
2447         * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
2448
2449 2002-05-17  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2450
2451         * config/avr/avr.c (avr_regs_to_save): New function.  Also check
2452         for fixed registers, possibly used for global register variables.
2453         (initial_elimination_offset, avr_output_function_prologue,
2454         avr_output_function_epilogue):  Move common code to avr_regs_to_save.
2455
2456 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
2457
2458         * Makefile.in: Update for cpptrad.c.
2459         * cpphash.h (struct cpp_buffer): New members for buffer
2460         overlays.
2461         (struct cpp_reader): New members for traditional output.
2462         (_cpp_read_logical_line, _cpp_overlay_buffer): New.
2463         * cppinit.c (cpp_create_reader): Set trad_line.
2464         (cpp_destroy): Free trad_out_base if used.
2465         (cpp_read_main_file): Overlay an empty buffer if traditional.
2466         (cpp_finish_options): Don't do builtins.
2467         (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
2468         (cpp_handle_option): Handle it.
2469         * cpplex.c (continue_after_nul): New.
2470         (_cpp_lex_direct): Use handle_nul.
2471         * cpplib.h (struct cpp_options): New traditional option.
2472         * cpptrad.c: New file.
2473
2474 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
2475
2476         * c-common.c (c_common_init_options): Use C89 for Objective-C,
2477         and set the options flag.
2478         * cppinit.c (lang_flags): Remove objc.
2479         (lang_defaults): Remove OBJC and OBJCXX.
2480         (set_lang): Update.
2481         (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
2482         (cpp_handle_option): Remove -+ and -lang-objc++.
2483         For ObjC, just set a flag.
2484         (print_help): Update.
2485         * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
2486
2487 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2488
2489         * doc/install.texi (Specific, mips-sgi-irix6): Document need to
2490         bootstrap with -mips3.
2491
2492 2002-05-17  Kazu Hirata  <kazu@cs.umass.edu>
2493
2494         * final.c: Fix formatting.
2495         * fix-header.c: Likewise.
2496         * flow.c: Likewise.
2497         * fold-const.c: Likewise.
2498         * function.c: Likewise.
2499
2500 2002-05-17  David S. Miller  <davem@redhat.com>
2501
2502         PR c/6689, PR optimization/6615
2503         * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
2504         and make it a pointer to rtx.  Update comments.
2505         (update_equiv_regs): When scanning for equivalences, record
2506         address of SET_SRC (set) in reg_equiv[].src_p.  Dereference
2507         it while making the equiv replacements.
2508
2509 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2510
2511         * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
2512
2513 2002-05-17  kaz Kojima  <kkojima@rr.iij4u.or.jp>
2514
2515         * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
2516         when encoding visibility into SYMBOL_REF_FLAG.
2517
2518 2002-05-17  Richard Sandiford  <rsandifo@redhat.com>
2519
2520         * expr.c (force_operand): Fix reversed move.
2521
2522 2002-05-17  Kurt Wall <kwall@kurtwerks.com>
2523
2524         * doc/install.texi (Testing): Mention two common DejaGnu warnings
2525         that can be ignored.
2526
2527 2002-05-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2528
2529         * doc/install.texi (Final install): Recommend to install into a
2530         "clean" target directory.
2531
2532 2002-05-17  Richard Henderson  <rth@redhat.com>
2533
2534         * config/ia64/ia64.md: Use braced strings instead of quoted strings
2535         for code blocks.  Tidy whitespace.
2536
2537 2002-05-17  Richard Henderson  <rth@redhat.com>
2538
2539         * hooks.c (hook_tree_bool_false): New.
2540         * hooks.h: Declare it.
2541         * target-def.h (TARGET_ASM_SELECT_SECTION): New.
2542         (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
2543         * target.h (select_section, unique_section): New.
2544         (in_small_data_p): New.
2545         * varasm.c (resolve_unique_section): Use hooks instead of macros.
2546         (variable_section, output_constant_def_contents): Likewise.
2547         (default_select_section, default_unique_section): New.
2548         (categorize_decl_for_section, default_elf_select_section): New.
2549         * output.h: Declare them.
2550
2551         * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
2552         (TARGET_ASM_SELECT_SECTION): New.
2553         (SELECT_SECTION): Move ...
2554         * config/darwin.c (machopic_select_section): ... here.
2555         * config/darwin-protos.h: Update.
2556
2557         * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
2558         (SELECT_SECTION): Move ...
2559         * config/nextstep.c (nextstep_select_section): ... here.
2560         * config/nextstep-protos.h: Update.
2561
2562         * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
2563         (TARGET_ASM_SELECT_SECTION): New.
2564         * config/svr3.h (SELECT_SECTION): Remove.
2565
2566         * config/alpha/alpha.c (unicosmk_unique_section): Make static.
2567         (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
2568         (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
2569         (alpha_encode_section_info): Use it.
2570         * config/alpha/alpha-protos.h: Update.
2571         * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
2572         (SELECT_SECTION, UNIQUE_SECTION): Remove.
2573         (TARGET_ASM_SELECT_SECTION): New.
2574         * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
2575
2576         * config/arm/pe.h (UNIQUE_SECTION): Remove.
2577         (TARGET_ASM_UNIQUE_SECTION): New.
2578
2579         * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
2580         (avr_unique_section): Rename from unique_section; make static.
2581         * config/avr/avr-protos.h: Update.
2582         * config/avr/avr.h (UNIQUE_SECTION): Remove.
2583
2584         * config/c4x/c4x.h (SELECT_SECTION): Remove.
2585
2586         * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
2587         (TARGET_ASM_UNIQUE_SECTION): New.
2588         * config/i386/i386-interix.h: Likewise.
2589         * config/i386/win32.h: Likewise.
2590         * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
2591         * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
2592         * config/i386/sco5.h (SELECT_SECTION): Remove.
2593         (TARGET_ASM_SELECT_SECTION): New.
2594         * config/i386/svr3gas.h (SELECT_SECTION): Remove.
2595
2596         * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
2597         instead of SELECT_SECTION.
2598         * config/m68k/dpx2.h: Likewise.
2599         * config/rs6000/lynx.h: Likewise.
2600
2601         * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2602         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
2603         * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
2604         (ia64_in_small_data_p): New.
2605         (ia64_encode_section_info): Use it.  Reorganize overlarge conditional.
2606         (ia64_aix_select_section, ia64_aix_unique_section): New.
2607         * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
2608         (SELECT_SECTION, UNIQUE_SECTION): Remove.
2609
2610         * config/m32r/m32r.h (SELECT_SECTION): Remove.
2611         (TARGET_ASM_SELECT_SECTION): New.
2612         * config/m32r/m32r.c (m32r_select_section): Take align argument.
2613         * config/m32r/m32r-protos.h: Update.
2614
2615         * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
2616         (SELECT_SECTION): Move ...
2617         * config/m88k/m88k.c (m88k_select_section): ... here.
2618
2619         * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
2620         * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
2621         * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
2622         (mcore_unique_section): Make static.
2623         * config/mcore/mcore-protos.h: Update.
2624
2625         * config/mips/elf.h (UNIQUE_SECTION): Remove.
2626         (TARGET_ASM_UNIQUE_SECTION): New.
2627         * config/mips/elf64.h: Likewise.
2628         * config/mips/iris6gld.h: Likewise.
2629         * config/mips/linux.h: Likewise.
2630         * config/mips/mips-protos.h: Update.
2631         * config/mips/mips.c (mips_select_section): Add align argument.
2632         * config/mips/mips.h (SELECT_SECTION): Remove.
2633         (TARGET_ASM_SELECT_SECTION): New.
2634
2635         * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2636         * config/mmix/mmix.c (mmix_select_section): Remove.
2637         (mmix_unique_section): Remove.
2638         * config/mmix/mmix-protos.h: Update.
2639
2640         * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
2641         (SELECT_SECTION): Move ...
2642         * config/pa/pa.c (pa_select_section): ... here.
2643         * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
2644
2645         * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
2646         from rs6000_select_section and make static.
2647         (rs6000_elf_unique_section): Similarly.
2648         (rs6000_xcoff_select_section): From xcoff.h.
2649         (rs6000_xcoff_unique_section): Likewise.
2650         * config/rs6000/rs6000-protos.h: Update.
2651         * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2652         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
2653         * config/rs6000/xcoff.h: Likewise.
2654
2655         * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
2656         (SELECT_SECTION): Move ...
2657         * config/sparc/sparc.c (sparc_aout_select_section): ... here.
2658
2659         * config/v850/v850.h (SELECT_SECTION): Move ...
2660         * config/v850/v850.c (v850_select_section): ... here.
2661         (TARGET_ASM_SELECT_SECTION): New.
2662
2663         * config/vax/vms.h (SELECT_SECTION): Move ...
2664         * config/vax/vax.c (vms_select_section): ... here.
2665         (TARGET_ASM_SELECT_SECTION): New.
2666
2667         * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
2668         for the target hooks.
2669
2670 2002-05-17  Nick Clifton  <nickc@cambridge.redhat.com>
2671
2672         * config/arm/arm.c (emit_multi_reg_push): Do not set
2673         RTX_FRAME_RELATED_P on the SEQUENCE.
2674
2675 2002-05-16  Richard Henderson  <rth@redhat.com>
2676
2677         * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
2678         splitting.  Use split_all_insns; update_life_info_in_dirty_blocks.
2679
2680 2002-05-16  Richard Henderson  <rth@redhat.com>
2681
2682         * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
2683
2684         * config/ia64/ia64.c (saveable_obstack): Do not declare.
2685
2686 2002-05-16  Richard Henderson  <rth@redhat.com>
2687
2688         * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
2689         cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
2690         conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
2691         gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
2692         local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
2693         recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
2694         reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
2695         sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
2696         Revert "Basic block renumbering removal", and two followup patches.
2697
2698 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
2699
2700         * lcm.c (optimize_mode_switching): Revert previous change.
2701
2702 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2703
2704         * sched-rgn.c (schedule_insns): Initialize large_region_blocks
2705         with only extant block numbers.
2706
2707 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
2708
2709         * lcm.c (optimize_mode_switching): Fix typo.
2710
2711 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2712
2713         * flow.c (calculate_global_regs_live): Queue blocks in program order.
2714
2715 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2716
2717         * doc/install.texi (Configuration): Document PWDCMD.
2718
2719 2002-05-16  Dale Johannesen  <dalej@apple.com>
2720
2721         * combine.c (cant_combine_insn_p):  Reenable combinations
2722         involving hard regs unless CLASS_LIKELY_SPILLED_P.
2723
2724 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
2725
2726         * c-common.c (cb_register_builtins): Handle more built-ins
2727         here rather than in gcc.c specs.
2728         * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
2729         (cpp_options): Pass -O flags even when only preprocessing.
2730         * toplev.c (set_fast_math_flags): New prototype.
2731         (fast_math_flags_set_p): New.
2732         (set_no_fast_math_flags): Remove.
2733         (decode_f_option): Update.
2734         * toplev.h (set_fast_math_flags): Update.
2735         (fast_math_flags_set_p): New.
2736         (set_no_fast_math_flags): Remove.
2737 config:
2738         * c4x/c4x.c (c4x_override_options): Update.
2739
2740 2002-05-16  Zack Weinberg  <zack@codesourcery.com>
2741
2742         * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
2743         Default-define here.
2744         (builtin_define_with_value): Can now wrap the expansion in
2745         quotation marks if such is wanted.
2746         (cb_register_builtins): Update calls to builtin_define_with_value.
2747         Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
2748         here.
2749         (c_common_init): Set options->stdc_0_in_system_headers.
2750         * c-lex.h: Update prototype of builtin_define_with_value.
2751         * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
2752         and REGISTER_PREFIX.
2753
2754         * cppinit.c (VERS, ULP, C, X): Kill.
2755         (builtin_array): Remove entries for __VERSION__,
2756         __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
2757         __HAVE_BUILTIN_SETJMP__.  Make __STDC__ always a builtin, not
2758         a constant.
2759         (init_builtins): Kill off a bunch of now-dead code.
2760         (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
2761         -fno-leading-underscore.
2762         (cpp_handle_option): Remove code to set user_label_prefix.
2763         (cpp_post_options): Likewise.
2764
2765         * cpplib.h (struct cpp_options): Remove user_label_prefix.
2766         (stdc_0_in_system_headers): New.
2767         * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
2768         stdc_0_in_system_headers) too to decide the value of __STDC__.
2769
2770         * tradcpp.c (user_label_prefix): Kill.
2771         (main): Remove code handling -f(no-)leading-underscore.
2772         (initialize_builtins): Don't define __REGISTER_PREFIX__
2773         or __USER_LABEL_PREFIX__.
2774         (install_value): Wrap compound statement in dummy loop so the
2775         macro works properly in an if statement.
2776
2777
2778 2002-05-16  Janis Johnson  <janis187@us.ibm.com>
2779
2780         * loop.h (struct loop_info): Add member has_prefetch.
2781         * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
2782         (prescan_loop): Initialize has_prefetch.
2783         (struct prefetch_info): Change prefetch_in_loop and
2784         prefetch_before_loop from bit fields to ints.
2785         (emit_prefetch_instructions): Several small fixes.
2786         (check_dbra_loop): Don't reverse loop that uses prefetch.
2787
2788 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2789
2790         * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
2791         * configure.in: Likewise.
2792         * fixinc/check.tpl: Likewise.
2793         * fixinc/fixinc.dgux: Likewise.
2794         * fixinc/fixinc.svr4: Likewise.
2795         * fixinc/fixinc.winnt: Likewise.
2796         * fixinc/fixincl.sh: Likewise.
2797         * fixproto: Likewise.
2798         * configure: Regenerate.
2799
2800 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2801
2802         Basic block renumbering removal:
2803         * basic_block.h (struct basic_block_def): Renamed index to sindex,
2804         added prev_bb and next_bb fields.
2805         (n_basic_blocks): Renamed to num_basic_blocks.
2806         (last_basic_block): New, index of last basic block.
2807         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
2808         traversing basic block chain.
2809         (BLOCK_NUM): index -> sindex.
2810         (create_basic_block_structure, create_basic_block): Declaration changed.
2811         (debug_num2bb): Declare.
2812         (expunge_block_nocompact): Declaration removed.
2813         (link_block, unlink_block, compact_blocks): Declare.
2814         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
2815         * cfg.c (entry_exit_blocks): Initialize new fields.
2816         (clear_edges, alloc_block, expunge_block, cached_make_edge,
2817         redirect_edge_pred, dump_flow_info, dump_edge_info,
2818         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
2819         free_aux_for_edges): Modified.
2820         (link_block, unlink_block, compact_blocks, debug_num2bb): New.
2821         (expunge_block_nocompact): Removed.
2822         * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
2823         find_unreachable_blocks, create_edge_list, print_edge_list,
2824         verify_edge_list, flow_edge_list_print, remove_fake_successors,
2825         remove_fake_edges, flow_reverse_top_sort_order_compute,
2826         flow_depth_first_order_compute, flow_preorder_transversal_compute,
2827         flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
2828         flow_dfs_compute_reverse_execute): Modified.
2829         * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
2830         find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
2831         Modified.
2832         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
2833         merge_blocks_move_predecessor_nojumps,
2834         merge_blocks_move_successor_nojumps, merge_blocks,
2835         outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
2836         try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
2837         * cfglayout.c (skip_insns_after_block, label_for_bb,
2838         record_effective_endpoints, scope_to_insns_finalize,
2839         fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
2840         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
2841         cfg_layout_duplicate_bb): Modified.
2842         * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
2843         flow_loop_entry_edges_find, flow_loop_exit_edges_find,
2844         flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
2845         flow_loops_find, flow_loop_outside_edge_p): Modified.
2846         * cfgrtl.c (create_basic_block_structure, create_basic_block,
2847         flow_delete_block, compute_bb_for_insn, split_block,
2848         try_redirect_by_replacing_jump, redirect_edge_and_branch,
2849         force_nonfallthru_and_redirect, tidy_fallthru_edge,
2850         back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
2851         commit_edge_insertions, commit_edge_insertions_watch_calls,
2852         dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
2853         purge_all_dead_edges): Modified.
2854         * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
2855         try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
2856         get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
2857         Modified.
2858         * conflict.c (conflict_graph_compute): Modified.
2859         * df.c (FOR_ALL_BBS): Removed.
2860         (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
2861         df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
2862         df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
2863         * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
2864         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
2865         calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
2866         * final.c (compute_alignments, final_scan_insn): Modified.
2867         * flow.c (verify_local_live_at_start, update_life_info,
2868         update_life_info_in_dirty_blocks, free_basic_block_vars,
2869         delete_noop_moves, calculate_global_regs_live,
2870         initialize_uninitialized_subregs, allocate_bb_life_data,
2871         regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
2872         mark_used_reg, count_or_remove_death_notes): Modified.
2873         * function.c (thread_prologue_and_epilogue_insns): Modified.
2874         * gcse.c (struct null_pointer_info): Change typo of current_block
2875         to basic_block.
2876         (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
2877         oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
2878         compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
2879         alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
2880         expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
2881         classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
2882         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
2883         pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
2884         pre_delete, one_pre_gcse_pass, compute_transpout,
2885         invalidate_nonnull_info, delete_null_pointer_checks_1,
2886         free_code_hoist_mem, compute_code_hoist_vbeinout,
2887         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
2888         compute_ld_motion_mems, store_ops_ok, find_moveable_store,
2889         compute_store_table, build_store_vectors, insert_insn_start_bb,
2890         insert_store, replace_store_insn, free_store_memory, store_motion):
2891         Modified.
2892         * global.c (global_alloc, global_conflicts, mark_elimination,
2893         build_insn_chain): Modified.
2894         * graph.c (print_rtl_graph_with_bb): Modified.
2895         * haifa-sched.c (sched_init): Modified.
2896         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
2897         (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
2898         if_convert): Modified.
2899         * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
2900         compute_insert_delete, pre_edge_lcm, compute_available,
2901         compute_farthest, compute_nearerout, compute_rev_insert_delete,
2902         pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
2903         Modified.
2904         * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
2905         * loop.c (loop_dump_aux): Modified.
2906         * predict.c (combine_predictions_for_insn, estimate_probability,
2907         last_basic_block_p, process_note_prediction, process_note_predictions,
2908         note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
2909         expensive_function_p, estimate_bb_frequencies,
2910         compute_function_frequency): Modified.
2911         * print-rtl.c (print_rtx): Modified.
2912         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
2913         get_exec_counts, compute_branch_probabilities, compute_checksum,
2914         branch_prob, find_spanning_tree): Modified.
2915         * recog.c (split_all_insns, peephole2_optimize): Modified.
2916         * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
2917         convert_regs_1, convert_regs_2, convert_regs): Modified.
2918         * regclass.c (scan_one_insn, regclass): Modified.
2919         * regmove.c (mark_flags_life_zones, regmove_optimize,
2920         combine_stack_adjustments): Modified.
2921         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
2922         * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
2923         * reorg.c (dbr_schedule): Modified.
2924         * resource.c (find_basic_block, init_resource_info): Modified.
2925         * sbitmap.c (sbitmap_intersection_of_succs,
2926         sbitmap_intersection_of_preds, sbitmap_union_of_succs,
2927         sbitmap_union_of_preds): Modified.
2928         * sched-deps.c (init_dependency_caches): Modified.
2929         * sched-ebb.c (schedule_ebbs): Modified.
2930         * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
2931         find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
2932         * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
2933         * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
2934         ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
2935         ssa_const_prop): Modified.
2936         * ssa-dce.c (set_control_dependent_block_to_edge_map_,
2937         find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
2938         * ssa.c (remove_phi_alternative, find_evaluations,
2939         compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
2940         insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
2941         make_regs_equivalent_over_bad_edges,
2942         make_equivalent_phi_alternatives_equival,
2943         compute_conservative_reg_partition,
2944         coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
2945         rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
2946         Modified.
2947
2948 2002-05-16  Mark Mitchell  <mark@codesourcery.com>
2949
2950         * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
2951
2952 2002-05-16  Nick Clifton  <nickc@cambridge.redhat.com>
2953
2954         * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
2955         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
2956         (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
2957         calling CONSTANT_POOL_ADDRESS_P.
2958         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
2959         to decide whether to define __arm__ or __thumb.
2960         (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
2961         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
2962
2963 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
2964
2965         * config/arc/arc.h (CPP_PREDEFINES): Remove.
2966         (CPP_SPEC): Update.
2967         (TARGET_CPU_CPP_BUILTINS): New.
2968
2969 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
2970
2971         * cpphash.h (cpp_macro): Move here, and make expansion a union.
2972         * cppmacro.c (cpp_macro): Remove.
2973         (enter_macro_context, replace_args, warn_of_redefinition,
2974         _cpp_create_definition, cpp_macro_definition): Update.
2975
2976 2002-05-16  Jason Merrill  <jason@redhat.com>
2977
2978         * config/mips/mips.c (mips_output_external): Don't do sdata
2979         optimization for a variable with DECL_COMDAT set.
2980
2981 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
2982
2983         * config/rs6000/altivec.h: Cleanups for tighter typechecking.
2984         Cleanups for accepting modifiers on pointers.
2985         Fix predicate typos.
2986         Allow long pointers as well as int pointers.
2987
2988 2002-05-15  Richard Henderson  <rth@redhat.com>
2989
2990         * varasm.c (merge_weak): Remove special case for extern and common.
2991
2992 2002-05-15  Matt Hiller  <hiller@redhat.com>
2993
2994         * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
2995         XFAILing.
2996         * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
2997         * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
2998         * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
2999         * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
3000         * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
3001         * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
3002
3003 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
3004
3005         * reload1.c (forget_old_reloads_1): Do not use subreg offset.
3006
3007 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
3008
3009         * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
3010         ("altivec_mfvscr"): Read from VSCR.
3011
3012         Add vscr sets for the following insns: altivec_vctuxs,
3013         altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
3014         altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
3015         altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
3016         altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
3017         altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
3018         altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
3019         altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
3020         altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
3021         altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
3022         altivec_vsum2sws, altivec_vsumsws.
3023
3024         * config/rs6000/rs6000.h: Add VSCR fixed register.
3025         (CALL_REALLY_USED_REGISTERS): Add vscr.
3026         (CALL_USED_REGISTERS): Same.
3027         (FIXED_REGISTERS): Same.
3028         (REG_ALLOC_ORDER): Same.
3029         (reg_class): Add VSCR_REGS.
3030         (REG_CLASS_NAMES): Same.
3031         (REG_CLASS_CONTENTS): Same.
3032         (VSCR_REGNO): New.
3033         (REGISTER_NAMES): Add vscr.
3034         (DEBUG_REGISTER_NAMES): Same.
3035         (ADDITIONAL_REGISTER_NAMES): Same.
3036         (FIRST_PSEUDO_REGISTER): Increment.
3037         (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
3038
3039 2002-05-15  Jakub Jelinek  <jakub@redhat.com>
3040
3041         * fold-const.c (fold): Fix a typo.
3042
3043 2002-05-15  Eric Botcazou  <ebotcazou@multimania.com>
3044
3045         * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
3046         comparison against the highest or lowest integer value before
3047         the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
3048         transformation and that of an unsigned comparison against 0
3049         right after.
3050
3051 2002-05-15  Richard Henderson  <rth@redhat.com>
3052
3053         * varasm.c (merge_weak): Error for any weakening after definition.
3054         Adjust weakening after use warning to catch more cases.
3055         (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
3056         * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
3057
3058 Wed May 15 10:38:27 CEST 2002  Jan Hubicka  <jh@suse.cz>
3059
3060         * invoke.texi (-malign-double): Re-add lost warning.
3061
3062         * i386-protos.h (x86_output_mi_thunk): Declare.
3063         * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
3064         * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
3065
3066         * dwarf2out.c (output_call_frame_info): Do not skip unwind info
3067         when flag_asynchronous_unwind_tables is set.
3068
3069         * flags.h (flag_reorder_functions): Declare.
3070         * function.c (prepare_function_start): Initialize frequnecy.
3071         * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
3072         * Makefile.in (predict.o): Add dependency on target.h and params.h
3073         * defaults.h (HOT_TEXT_SECTION_NAME,
3074         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
3075         * predict.c (choose_function_section): New function.
3076         (estimate_bb_frequencies): Use it.
3077         * toplev.c (flag_reorder_functions): New global variable.
3078         (lang_independent_options): New.
3079         (parse_options_and_default_flags): Set.
3080         * varasm.c (assemble_start_function): Bypass functdion alignment
3081         for never executed functions.
3082         * invoke.texi (-freorder-blocks, -freorder-functions): Document.
3083         (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
3084         * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
3085         Document.
3086
3087         Thu Jan  3 21:52:09 CET 2002  Jan Hubicka  <jh@suse.cz>
3088
3089         * predict.c: Inlude profile.h
3090         (MIN_COUNT): Rename to MIN_COUNT_FRACTION
3091         (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
3092         Use the information about maximal counter in the program.
3093
3094         Thu Dec 20 22:14:00 CET 2001  Jan Hubicka  <jh@suse.cz>
3095
3096         * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
3097         probably_never_executed_bb_p): New functions.
3098         * cfgcleanup.c (outgoing_edges_match): Use them.
3099         * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
3100         (maybe_hot_bb_p, probably_cold_bb_p,
3101         probably_never_executed_bb_p): New functions.
3102
3103         * function.h (function): Add new field function_frequency.
3104         * predict.c (compute_function_frequency): New function.
3105         (estimate_probability): Call it.
3106
3107 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
3108
3109         PR optimization/5172, optimization/5200
3110         * gcse.c (gcse_main): Disable store_motion.
3111
3112 2002-05-14  Zack Weinberg  <zack@codesourcery.com>
3113
3114         * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
3115         (c_common_nodes_and_builtins): Use it.
3116         (builtin_define_with_value): New function.
3117         (cb_register_builtins): Define __SIZE_TYPE__,
3118         __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
3119         using builtin_define_with_value.  Use consistent notation when
3120         defining __GXX_WEAK__.
3121         (WCHAR_TYPE_SIZE): Don't redefine.
3122         (combine_strings): Don't use WCHAR_TYPE_SIZE.
3123
3124         * cppdefault.h: Don't provide defaults for SIZE_TYPE,
3125         PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
3126         * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
3127         * tradcpp.c (initialize_builtins): Likewise.
3128         * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
3129
3130         * c-lex.h (builtin_define_with_value): Prototype.
3131         * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
3132         NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
3133         * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
3134
3135         * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
3136         config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
3137         config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
3138         config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
3139         config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
3140         config/sparc/linux64.h, config/sparc/netbsd-elf.h,
3141         config/sparc/sol2-bi.h, config/sparc/sparc.h:
3142         Do not define NO_BUILTIN_SIZE_TYPE etc.  Remove all references
3143         to __SIZE_TYPE__ etc from all spec strings. When this makes
3144         extra specs empty, delete them.
3145
3146 2002-05-14  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3147
3148         * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
3149         for PA8000 or generating dwarf2 call frame information.
3150         (output_call): Remove DO_FRAME_NOTES check from return pointer
3151         optimization.
3152         (following_call): Return 0 when scheduling for PA8000 or generating
3153         dwarf2 call frame information.  Revise comment.
3154
3155 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
3156
3157 config/alpha:
3158         * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
3159         and __IEEE_FP_INEXACT as appropriate.
3160         (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
3161         (CPP_SPEC): Remove ieee defines.
3162         * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
3163
3164 2002-05-14  Richard Henderson  <rth@redhat.com>
3165
3166         * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
3167         (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
3168
3169 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
3170
3171         * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
3172         (CPP_SPEC): Update.
3173         (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
3174         CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
3175         CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
3176         CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
3177         (EXTRA_SPECS): Update.
3178         * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
3179         arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
3180         arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
3181         define TARGET_OS_CPP_BUILTINS if necessary.
3182
3183 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
3184
3185         * gcc.c (cpp_options): Must pass -m* and -f* options
3186         to the front end even when only preprocessing.
3187         (cc1_options): Remove redundant -lang-c.
3188         * tradcpp.c (main): Ignore -m options.
3189 objc:
3190         * lang-specs.h: Similarly.
3191
3192 2002-05-14  Vladimir Makarov  <vmakarov@redhat.com>
3193
3194         * genautomata.c (transform_3): Add code for transformation
3195         `(A,B,...)+C -> A+C,B,...'.
3196
3197 Tue May 14 12:48:22 CEST 2002  Jan Hubicka  <jh@suse.cz>
3198
3199         * final.c (end_final): Do not output profile_arcs constructor, when
3200         no functions are instrumented.
3201
3202 Tue May 14 12:38:30 CEST 2002  Jan Hubicka  <jh@suse.cz>
3203
3204         * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
3205
3206 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3207
3208         * doc/install.texi: Remove special markup originally required for
3209         HTML generation with texi2html.
3210
3211 2002-05-14  Andreas Schwab  <schwab@suse.de>
3212
3213         * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
3214         SELECT_SECTION.
3215         (UNIQUE_SECTION): Define to get small data correctly.
3216
3217         * varasm.c (resolve_unique_section): Add third parameter
3218         flag_function_or_data_sections and use it instead of
3219         flag_function_sections.
3220         (assemble_start_function): Pass flag_function_sections.
3221         (asm_emit_uninitialised): Pass flag_data_sections.
3222         (assemble_variable): Likewise.
3223
3224 2002-05-14  Richard Henderson  <rth@redhat.com>
3225
3226         * config/i386/i386.md: Use define_constants for unspec numbers.
3227         * config/i386/i386.c: Likewise.
3228
3229 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
3230
3231         * doc/contrib.texi: Update my entry.
3232
3233 2002-05-13  Mark Mitchell  <mark@codesourcery.com>
3234
3235         * fixinc/inclhack.def (winidss_valist): Limit applicability.
3236         * fixinc/fixincl.x: Regenerated.
3237         * fixinc/tests/base/math.h: Update.
3238         * fixinc/tests/base/testing.h: Likewise.
3239
3240 2002-05-13  Zack Weinberg  <zack@codesourcery.com>
3241
3242         * genattr.c (gen_attr): Don't emit a comma after the last
3243         enumerator.
3244
3245 2002-05-13  Richard Henderson  <rth@redhat.com>
3246
3247         * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
3248         by non-local gotos.
3249         * recog.c (peephole2_optimize): Likewise.
3250
3251 2002-05-13  Andris Pavenis  <pavenis@lanet.lv>
3252
3253         * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
3254         input to O_BINARY.
3255
3256 2002-05-13  Jeffrey A Law  (law@redhat.com)
3257
3258         * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
3259         Update prototype and callers.
3260         (propagate_one_insn): Stack pointer adjustments kill MEMs on
3261         the mem_set_list which reference the stack pointer, as do
3262         calls to constant functions as they may clobber outgoing
3263         argument space.
3264
3265         * i386.c (ia32_multipass_dfa_lookahead): Prototype.
3266
3267         * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
3268         (ia32_multipass_dfa_lookahead): New function.
3269
3270 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
3271
3272         * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
3273         (translate_options): Remove 'V'.
3274         (process_command): Similarly.
3275 doc:
3276         * invoke.texi: Remove documentation of 'V'.
3277
3278 2002-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
3279
3280         * config/s390/linux.h: Revert 2002-04-22 changes.
3281
3282 2002-05-13  Scott Marks <SMarks@mobile-mind.com>
3283
3284         * config/fr30/fr30.md: Only allow splits of immediate loads
3285         if the destination is a register.
3286
3287 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
3288
3289         * Makefile.in (c-common.o, cppinit.o): Update.
3290         * c-common.c: Include except.h.
3291         (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
3292         Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
3293         * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
3294         * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
3295         CPP_PREDEFINES): Handle here.
3296 config:
3297         * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
3298         alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
3299         alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
3300         TARGET_OS_CPP_BUILTINS.
3301         * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
3302         (CPP_SPEC, EXTRA_SPECS): Update.
3303         (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
3304         CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
3305         CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
3306         CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
3307         CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
3308 doc:
3309         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
3310         (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
3311
3312 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
3313
3314         * emit-rtl.c (global_rtl): Update comment.
3315         (const_double_htab, const_double_htab_hash,
3316         const_double_htab_hash, lookup_const_double): New.
3317         (const_int_htab_hash, const_int_htab_eq): Remove const
3318         qualifiers, which cause tons of warnings with RTL checking on.
3319         (gen_rtx_CONST_DOUBLE): Deleted.
3320         (const_double_from_real_value): New function - bears some
3321         resemblance to the former immed_real_const_1.
3322         (immed_double_const): Moved here from varasm.c and
3323         simplified.
3324         (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
3325         (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
3326         (gen_rtx): Use immed_double_const.
3327         (init_emit_once): Initialize the const_double_htab.  Use
3328         REAL_VALUE_FROM_INT where possible.  Can now use
3329         CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
3330         * varasm.c (struct varasm_status): Remove x_const_double_chain.
3331         (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
3332         (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
3333         (init_varasm_status, mark_varasm_status): Don't touch
3334         x_const_double_chain.
3335
3336         * output.h: Delete prototype for clear_const_double_mem.
3337         * real.h: Make REAL_VALUE_TYPE a macro again.  Remove leading
3338         '0' slot from all CONST_DOUBLE_FORMAT definitions.  Prototype
3339         const_double_from_real_value, not immed_real_const_1, and use
3340         it to define CONST_DOUBLE_FROM_REAL_VALUE.  Define new macro
3341         CONST_DOUBLE_ATOF.
3342         * rtl.h (CONST_DOUBLE_CHAIN): Kill.
3343         (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
3344         (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
3345         (gen_rtx_REG): Second arg is unsigned.
3346
3347         * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
3348         (excluded_rtx): New, return true for CONST_DOUBLE.
3349         (genmacro): Write nothing for excluded codes.
3350         * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
3351         * expr.c (expand_expr): Likewise.
3352         * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
3353         CONST_DOUBLE_CHAIN.
3354         * toplev.c (rest_of_compilation): Don't call
3355         clear_const_double_mem.
3356
3357         * config/rs6000/rs6000.c (rs6000_float_const): Delete.
3358         (rs6000_hash_constant): Remove CONST_DOUBLE special case.
3359         (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
3360         * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
3361         * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
3362         * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
3363         config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
3364         * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
3365
3366 2002-05-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3367
3368         * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
3369
3370 2002-05-12  Tom Tromey  <tromey@redhat.com>
3371
3372         * tree.h (copy_node): Don't mention TREE_PERMANENT.
3373
3374 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
3375
3376         * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
3377         (scan_comma_elt): New function.  Accepts whitespace in comma lists.
3378         * gensupport.h: Prototype new routines.
3379         * genattr.c (gen_attr): Use scan_comma_elt.  Avoid unnecessary
3380         use of printf.
3381         * genattrtab.c (n_comma_elts): Moved to gensupport.c.
3382         (next_comma_elt): Use scan_comma_elt.
3383
3384         * config/i386/i386.md: Use new attribute notation to break up
3385         long lines in define_attr forms.
3386
3387 2002-05-12  Richard Henderson  <rth@redhat.com>
3388
3389         * expr.c (compress_float_constant): New.
3390         (emit_move_insn): Use it.
3391         (float_extend_from_mem): New.
3392         (init_expr_once): Initialize it.
3393         * real.c (exact_real_truncate): New.
3394
3395         * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
3396         dropped into memory; penalize for size.
3397         (RTX_COSTS): FLOAT_EXTEND is free.
3398         * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
3399         extenddfxf2, extenddftf2): Accept constants and drop them to memory.
3400
3401 2002-05-12  Richard Henderson  <rth@redhat.com>
3402
3403         * profile.h (profile_info): Add missing extern to declaration.
3404         * profile.c (profile_info): Define it.
3405
3406 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3407
3408         * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
3409         used for DImode and TImode.
3410
3411 2002-05-11  Neil Booth  <neil@daikokuya.demon.co.uk>
3412
3413         * cpplex.c (_cpp_lex_direct): When in a directive at EOF
3414         fake a newline.
3415
3416 2002-05-11  Zack Weinberg  <zack@codesourcery.com>
3417
3418         * config/rs6000/rs6000.c (rs6000_default_long_calls,
3419         rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
3420         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
3421         (rs6000_override_options): Handle -m(no-)longcall.
3422         (init_cumulative_args, output_mi_thunk): Check for both
3423         longcall and shortcall attributes on the function.
3424         (rs6000_attribute_table): Add "shortcall".
3425         (rs6000_handle_longcall_attribute): Update comment.
3426         (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
3427         altivec_expand_ternop_builtin): Add default clauses to switches
3428         to silence warnings.
3429
3430         * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
3431         rs6000_default_long_calls.  Define REGISTER_TARGET_PRAGMAS.
3432         (TARGET_OPTIONS): Add longcall and no-longcall.
3433
3434         * config/rs6000/rs6000.md (call_nonlocal_sysv,
3435         call_value_nonlocal_sysv): Split by alternatives.  One pair
3436         accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
3437         the call cookie.  The other pair accepts only LR/CTR and has
3438         no restriction.
3439
3440         * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
3441         Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
3442         tmake_file.
3443         * config/rs6000/rs6000-c.c: New file.
3444         * config/rs6000/t-rs6000-c-rule: New file.
3445         * config/rs6000/rs6000-protos.c: Add multiple-include guard.
3446         Prototype rs6000_pragma_longcall.
3447
3448         * doc/extend.texi: Document shortcall attribute.
3449         * doc/invoke.texi: Document -mlongcall, -mno-longcall.
3450
3451 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3452
3453         * reorg.c (dbr_schedule): Remove unnecessary test.
3454
3455 Sat May 11 14:34:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
3456
3457         * i386.md (testsi to testqi spliters): New.
3458
3459         2002-01-14  Josef Zlomek  <zlomek@matfyz.cz>
3460
3461         cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
3462
3463         Wed Jan  9 2002  Josef Zlomek  <zlomj9am@artax.karlin.mff.cuni.cz>
3464
3465         * basic-block.h: New flag EDGE_CAN_FALLTHRU
3466         * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
3467         that can be made fallthru.
3468
3469         Mon Nov 12 16:25:53 CET 2001  Jan Hubicka  <jh@suse.cz>
3470
3471         * cfglayout.c (cleanup_unconditional_jumps): New static function.
3472         (cfg_layout_initialize): Use it.
3473
3474 2002-05-11  Marek Michalkiewicz  <marekm@amelek.gda.pl>
3475
3476         * config/avr/avr.c (avr_mcu_types): Update supported devices.
3477         * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
3478         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
3479
3480 2002-05-11  Kazu Hirata  <kazu@cs.umass.edu>
3481
3482         * dbxout.c: Fix formatting.
3483         * dependence.c: Likewise.
3484         * df.c: Likewise.
3485         * diagnostic.c: Likewise.
3486         * doloop.c: Likewise.
3487         * dominance.c: Likewise.
3488         * doschk.c: Likewise.
3489         * dwarf2asm.c: Likewise.
3490         * dwarf2out.c: Likewise.
3491         * dwarfout.c: Likewise.
3492
3493 2002-05-10  Richard Henderson  <rth@redhat.com>
3494
3495         * final.c (end_final): Tidy whitespace.  Don't honor flag_pack_struct.
3496         Convert integers constants as needed.  Replace "nwords" field with
3497         "sizeof_bb".
3498         (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
3499         * function.h: Fix typo in comment.
3500         * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
3501
3502 2002-05-10  Roger Sayle  <roger@eyesopen.com>
3503
3504         * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
3505         into the equivalent (signed char)c > 0.
3506
3507 2002-05-10  Janis Johnson  <janis187@us.ibm.com>
3508
3509         * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
3510         (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
3511         (struct prefetch_info): Fix spelling of member bytes_accessed.
3512         (emit_prefetch_instructions): Make dump messages more regular;
3513         restructure code to add more dump messages; use new macros for
3514         heuristics. (There are no code generation changes in any of this).
3515
3516 2002-05-10  David S. Miller  <davem@redhat.com>
3517
3518         * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
3519         (struct rtx_def): Update unchanging flag comment.
3520         * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
3521         * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
3522         to be handled to INSN too.
3523         (dbr_schedule): Likewise.
3524         * resource.c (next_insn_no_annul): Likewise.
3525
3526         * cse.c (rtx_cost): Remove multiplication by power of 2 special
3527         casing.
3528
3529 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3530
3531         * doc/install.texi (Specific, *-*-solaris2*): Update passus on
3532         setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
3533         (possibly) work around broken /bin/sh.
3534
3535 2002-05-10  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3536
3537         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
3538         . as N64/N32 libgcc_s.so subdirs.
3539
3540 2002-05-10  David S. Miller  <davem@redhat.com>
3541
3542         * config/sparc/sparc.md: Use define_constants for unspec numbers.
3543
3544         * rtl.h (struct rtx_def): Document unchanging and in_struct flags
3545         more accurately.
3546         (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
3547         comment.
3548         (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
3549         * doc/rtl.texi: Document these macros more accurately.
3550         * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
3551         JUMP_INSNs and CALL_INSNs.
3552         * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
3553         or INSN_FROM_TARGET_P if the code is appropriate.
3554
3555 2002-05-10  Marek Michalkiewicz  <marekm@amelek.gda.pl>
3556
3557         * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
3558         before using SYMBOL_REF_FLAG (addr).
3559
3560         * config/avr/avr-protos.h (avr_io_address_p): Declare.
3561         * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
3562         Make non-static.  Update all callers.
3563         * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
3564         New insns to clear/set/test a single bit in I/O address space.
3565
3566 2002-05-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3567
3568         * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
3569
3570 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
3571
3572         * Makefile.in: Update.
3573         * c-common.c (flag_iso, flag_undef, cb_register_builtins,
3574         builtin_define_std): New.
3575         (c_common_init): Register CPP builtins callback.
3576         * c-common.h (flag_iso, flag_undef): New.
3577         * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
3578         * c-lex.c: Don't include target.h.
3579         (cb_register_builtins): Move to c-common.c.
3580         (init_c_lex): Don't register hook here.
3581         * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
3582         (cpp_define, cpp_assert): Remove.
3583         * gcc.c (cc1_options): Pass -undef to front end.
3584         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
3585         (TARGET_INITIALIZER): Update.
3586         * target.h (struct cpp_reader): Don't predeclare.
3587         (struct gcc_target): Remove cpp builtin hook.
3588         * tree.c (default_register_cpp_builtins): Remove.
3589 doc:
3590         * tm.texi: Update.
3591
3592 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
3593
3594         * cppexp.c (_cpp_expand_op_stack): Set op_limit.
3595
3596 2002-05-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3597
3598         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
3599         (SHLIB_LINK, SHLIB_INSTALL): Adjust.
3600
3601 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
3602
3603         * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
3604         * config/sparc/libgcc-sparc-glibc.ver: New file.
3605         * config/cris/t-linux (SHLIB_MAPFILES): Remove.
3606         * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
3607
3608 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
3609
3610         PR target/6429
3611         * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
3612         * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
3613         shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
3614         base multilibs.
3615         * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
3616         * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
3617         * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
3618         * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
3619
3620 2002-05-09  Richard Henderson  <rth@redhat.com>
3621
3622         * config/ia64/ia64.md: Use define_constants for unspec numbers.
3623         * config/ia64/ia64.c: Likewise.
3624
3625 2002-05-09  Richard Sandiford  <rsandifo@redhat.com>
3626
3627         * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
3628         (save_restore_insns): Likewise.
3629         (mips_expand_prologue, mips_expand_epilogue): Update callers.
3630         (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
3631
3632 Thu May  9 11:50:09 2002  Jeffrey A Law  (law@redhat.com)
3633
3634         * athlon.md, k6.md, pentium.md, ppro.md): New files.
3635         * i386.md: Move scheduling information into new files.
3636
3637         * i386.md (type attribute): Add "rotate" for rotate insns.
3638         (rotate insns): Set type to "rotate".
3639         (various attributes and function units): Treat rotate like shift.
3640         (pent_pair attribute): Only rotates by one bit position are
3641         pairable.
3642         (sbb insns): Explicitly set pent_pair attribute on a couple
3643         that were missing it.
3644
3645 Thu May  9 18:29:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
3646
3647         * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
3648         make sure that buffer starts on odd word address.
3649         (sh_va_arg): Skip odd fp registers when reading a double precision
3650         value.
3651
3652 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
3653
3654         * tree.h (preserve_data, object_permanent_p, type_precision):
3655         Remove.
3656
3657 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
3658
3659         * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
3660         * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
3661 doc:
3662         * cpp.texi: Update for removal of obsolete features.
3663
3664 Thu May  9 07:46:18 2002  Jan Hubicka <jh@suse.cz>
3665                           Jeffrey A Law  (law@redhat.com)
3666
3667         * i386.c (ia32_use_dfa_pipeline_interface): New function.  Use
3668         the DFA interface for Pentium processors.
3669         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
3670         (attr_pent_pair, ix86_pent_find_pair): Remove.
3671         (ix86_sched_reorder_pentium): Remove.
3672         (ix86_sched_reorder): Remove reordering for Pentium.
3673         * i386.md (Pentium scheduling): Rewrite using DFA description.
3674
3675 Thu May  9 14:55:39 CEST 2002  Jan Hubicka  <jh@suse.cz>
3676
3677         * cfganal.c (can_fallthru): Fix fast path.
3678         * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
3679         with edges to the next block.
3680
3681 Thu May  9 14:52:45 CEST 2002  Jan Hubicka  <jh@suse.cz>
3682                                Pavel Nejedly  <bim@atrey.karlin.mff.cuni.cz>
3683
3684         * final.c (end_final): Use C trees to output data structures for profiling.
3685
3686         * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
3687         (profile.o): New dependency profile.h
3688         (final.o): New dependency profile.h
3689         * profile.h: New file. New global structure profile_info.
3690         * final.h (count_edges_instrumented_now): Declare.
3691         (current_function_cfg_checksum): Declare.
3692         (function_list): New structure.
3693         (functions_head, functions_tail): New static variables.
3694         (end_final): Emits more data, removed some -ax stuff.
3695         (final): Stores function names and chcksums.
3696         * gcov-io.h (__write_gcov_string): New function.
3697         (__read_gcov_string): New function.
3698         * gcov.c (read_profile): New function.
3699         (create_program_flow_graph): Uses read_profile instead of reading
3700         da_file.
3701         (read_files): Removed da_file checking, it's done by read_profile now.
3702         * libgcc2.c (bb_function_info): New structure.
3703         (bb): New field in structure, removed some -ax stuff.
3704         (__bb_exit_func): Changed structure of da_file.
3705         * profile.c (count_edges_instrumented_now): New global variable.
3706         (current_function_cfg_checksum): New global variable.
3707         (max_counter_in_program): New global variable.
3708         (get_exec_counts): New function.
3709         (compute_checksum): New function.
3710         (instrument_edges): Sets count_edges_instrumented_now.
3711         (compute_branch_probabilities): Uses get_exec_counts instead of
3712         reading da_file.
3713         (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
3714         (init_branch_prob): Removed da_file checking, done in get_exec_counts
3715         now.
3716         (end_branch_prob): Removed da_file checking, done in get_exec_counts
3717         now.
3718         * gcov.texi: Updated information about gcov file format.
3719
3720 2002-05-09  Kazu Hirata  <kazu@cs.umass.edu>
3721
3722         * sbitmap.c: Fix formatting.
3723         * scan.c: Likewise.
3724         * scan-decls.c: Likewise.
3725         * sched-deps.c: Likewise.
3726         * sched-ebb.c: Likewise.
3727         * sched-rgn.c: Likewise.
3728         * sched-vis.c: Likewise.
3729         * sdbout.c: Likewise.
3730         * sibcall.c: Likewise.
3731         * simplify-rtx.c: Likewise.
3732         * ssa.c: Likewise.
3733         * ssa-ccp.c: Likewise.
3734         * ssa-dce.c: Likewise.
3735         * stmt.c: Likewise.
3736         * stor-layout.c: Likewise.
3737         * stringpool.c: Likewise.
3738
3739 2002-05-09  David S. Miller  <davem@redhat.com>
3740
3741         * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
3742
3743 2002-05-07  David S. Miller  <davem@redhat.com>
3744
3745         * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
3746         * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
3747         * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
3748         library implementation clobbers the output before the inputs
3749         are fully consumed, use stack temporary for the output.
3750
3751 2002-05-09  Jason Thorpe  <thorpej@wasabisystems.com>
3752
3753         * config/netbsd.h (CPP_SPEC): Remove.
3754         * config/i386/netbsd-elf.h (CPP_SPEC): Define.
3755         * config/i386/netbsd.h (CPP_SPEC): Define.
3756         * config/ns32k/netbsd.h (CPP_SPEC): Define.
3757         * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
3758         * config/sparc/netbsd.h (CPP_SPEC): Define.
3759         * config/vax/netbsd.h (CPP_SPEC): Define.
3760
3761 2002-05-08  Kazu Hirata  <kazu@cs.umass.edu>
3762
3763         * read-rtl.c: Fix formatting.
3764         * real.c: Likewise.
3765         * recog.c: Likewise.
3766         * regclass.c: Likewise.
3767         * regmove.c: Likewise.
3768         * reg-stack.c: Likewise.
3769         * reload1.c: Likewise.
3770         * reload.c: Likewise.
3771         * resource.c: Likewise.
3772         * rtlanal.c: Likewise.
3773         * rtl.c: Likewise.
3774         * rtl-error.c: Likewise.
3775
3776 2002-05-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3777
3778         * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
3779         * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
3780
3781 2002-05-08  Bernd Schmidt  <bernds@redhat.com>
3782
3783         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
3784         use __SSE2__ macro instead.
3785         * config/i386/xmmintrin.h: Likewise.
3786
3787 2002-05-08  Janis Johnson  <janis187@us.ibm.com>
3788
3789         * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
3790         and use it in all invocations of these macros.  Clean up comments.
3791         * rtl.c (rtl_check_failed_flag): Add an argument for the name
3792         of the flag access macro whose check failed.
3793         * doc/rtl.texi (Flags): Document additional flag uses.
3794
3795 2002-05-08  Robert Spier <rspier@pobox.com>
3796             Neil Booth  <neil@daikokuya.demon.co.uk>
3797
3798         PR preprocessor/6521
3799         * cppfiles.c (handle_missing_header): Don't do anything
3800         different for <> includes.
3801 doc:
3802         * cppopts.texi: Update documentation for -MG.
3803
3804 2002-05-08  Neil Booth  <neil@daikokuya.demon.co.uk>
3805
3806         * cpplex.c (cpp_interpret_charconst): Truncate as well as
3807         sign-extend.
3808 doc:
3809         * cpp.texi: Clarify multichar charconst valuation.
3810
3811 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
3812
3813         * doc/invoke.texi: Document -mwindiss option.
3814
3815 2002-05-08  Jason Merrill  <jason@redhat.com>
3816
3817         * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
3818
3819         * dwarf2out.c (gen_type_die): Abort on broken recursion.
3820
3821         PR c++/6381
3822         * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
3823         REAL_CST.
3824
3825 2002-05-08  Nick Clifton  <nickc@cambridge.redhat.com>
3826
3827         * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
3828         little-endian multilibs to override arm/thumb multilibs.
3829         Do not build hardware floating point multilibs, nor apcs-26
3830         multilibs for the Thumb.
3831
3832 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
3833
3834         PR c/6569.
3835         * varasm.c (mark_weak): New function.
3836         (merge_weak): Use it.  Do not call declare_weak.
3837         (declare_weak): Use merge_weak.
3838
3839 Wed May  8 13:12:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
3840
3841         * cse.c (dead_libcall_p): Update counts.
3842         (delete_trivially_dead_insns): Update call of dead_libcall_p.
3843
3844 Wed May  8 11:08:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
3845
3846         * cfglayout.c (function_tail_eff_head): Rename to ...
3847         (function_footer): ... this one.
3848         (unlink_insn_chain): New functions.
3849         (label_for_bb): Only call block_label and emit debug message.
3850         (record_effective_endpoints): Actually unlink the headers and footers.
3851         (fixup_reorder_cahin): Re-insert the unlinked sequences.
3852         (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
3853         * cfglayout.h (struct reorder_block_def): New fields footer/header;
3854         remove eff_head/eff_end.
3855         * rtl.h (set_first_insn): Declare.
3856         * emit-rtl.c (set_first_insn): New function.
3857
3858         * cfglayout.c (fixup_reorder_chain): Dump duplicated
3859         (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
3860         cfg_layout_duplicate_bb): New global function.
3861         (duplicate_insn_chain): New static function.
3862         * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
3863         cfg_layout_duplicate_bb): Declare.
3864         (struct reorder_block_def): Add "original" field.
3865         * emit-rtl.c (emit_copy_of_insn_after): New function.
3866         * rtl.h (emit_copy_of_insn_after): Declare.
3867
3868         * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
3869         (fixup_reorder_chain): properly handle edges to exit block.
3870
3871 Wed May  8 11:10:31 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3872                                Jan Hubicka  <jh@suse.cz>
3873
3874         * basic-block.h (note_prediction_to_br_prob): declare.
3875         * c-semantics.c: Inlucde predit.h
3876         (expand_stmt): predict GOTO_STMT as not taken.
3877         * cfgcleanup.c: (delete_unreachable_blocks): Make global.
3878         (cleanup_cfg): Do not free tail_recursion_list.
3879         * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
3880         (flow_delete_block): Kill predictions past end of basic block.
3881         * output.h (delete_unreachable_blocks): Declare.
3882         * predict.c (predicted_by_p, process_note_predictions,
3883         process_note_prediction, last_block_p): New function.
3884         (estimate_probability): Bypass loop on PRED_CONTINUE;
3885         do not handle noreturn heuristics; kill PRED_RETURN; add
3886         PRED_EARLY_RETURN.
3887         * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
3888         PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
3889         * predict.h (IS_TAKEN): New constant.
3890         * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
3891         * rtl.c (NOTE_INSN_PREDICTION): New.
3892         * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
3893         New macro.
3894         (insn_note): add NOTE_INSN_PREDICTION.
3895         * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
3896         CFG; free tail_recursion_label_list.
3897         * stmt.c: Include predict.h;
3898         (return_prediction): New.
3899         (expand_value_return): Use it.
3900         * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
3901
3902 2002-05-08  Richard Sandiford  <rsandifo@redhat.com>
3903
3904         * config/mips/mips.md: Name the unspecs with define_constant.
3905         (*HILO_delay): Rename to 'hilo_delay' (no star).
3906         (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
3907         (reload_outdi, reload_outsi): Likewise.
3908
3909 2002-05-07  Kazu Hirata  <kazu@cs.umass.edu>
3910
3911         * toplev.c: Fix formatting.
3912
3913 2002-05-07  Janis Johnson  <janis187@us.ibm.com>
3914
3915         * config.in (ENABLE_RTL_FLAG_CHECKING): New.
3916         * configure.in (ac_rtlflag_checking): New.
3917         * doc/install.texi (--enable-checking): Document RTL flag checking.
3918
3919 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
3920
3921         * c-common.c (c_common_init): Set options->unsigned_wchar.
3922         * cppinit.c (cpp_create_reader): Default unsigned_wchar,
3923         group target dependencies.
3924         (init_builtins, cpp_handle_option): Update.
3925         * cpplex.c (cpp_interpret_charconst): Update.
3926         * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
3927         signed_char to unsigned_char, group target dependencies.
3928         * defaults.h (WCHAR_UNSIGNED): Remove.
3929         * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
3930 config:
3931         * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
3932         i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
3933         i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
3934         i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
3935         sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
3936 doc:
3937         * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
3938
3939 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
3940
3941         * fixinc/inclhack.def (windiss_math1): New fix.
3942         (windiss_math2): Likewise.
3943         (windiss_valist): Likewise.
3944         * fixinc/fixincl.x: Regenerated.
3945
3946 2002-05-07  Andreas Jaeger  <aj@suse.de>
3947
3948         * genautomata.c (output_internal_min_issue_delay_func): Add
3949         ATTRIBUTE_UNUSED to avoid warning with empty dfa.
3950         (output_internal_trans_func): Likewise.
3951
3952 Tue May  7 10:06:22 2002  Jeffrey A Law  (law@redhat.com)
3953
3954         * pa.c (hppa_profile_hook): Use force_reg to get the address
3955         of the profile hook into an appropriate pseudo register.
3956
3957 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
3958
3959         * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
3960         (LINK_START_SPEC): Handle it.
3961         (LINK_OS_SPEC): Likewise.
3962         (CPP_SPEC): Likewise.
3963         (STARTFILE_SPEC): Likewise.
3964         (LIB_SPEC): Likewise.
3965         (ENDFILE_SPEC): Likewise.  Do not assume crtsavres.o is used on
3966         all platforms.
3967         (CRTSAVRES_DEFAULT_SPEC): New macro.
3968         (LIB_WINDISS_SPEC): New macro.
3969         (CPP_OS_WINDISS_SPEC): Likewise.
3970         (STARTFILE_WINDISS_SPEC): Likewise.
3971         (ENDFILE_WINDISS_SPEC): Likewise.
3972         (LINK_START_WINDISS_SPEC): Likewise.
3973         (LINK_OS_WINDISS_SPEC): Likewise.
3974         * config/rs6000/windiss.h: New file.
3975
3976 2002-05-07  Aldy Hernandez  <aldyh@redhat.com>
3977
3978         * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
3979
3980 2002-05-06  David S. Miller  <davem@redhat.com>
3981
3982         * config/sparc/sparc.md (shift insns): Do not mask off
3983         second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
3984         take care of it.
3985
3986 2002-05-06  Richard Henderson  <rth@redhat.com>
3987
3988         PR c++/6212
3989         * expr.c (highest_pow2_factor_for_type): New.
3990         (expand_assignment): Use it.
3991
3992 2002-05-06  Aldy Hernandez  <aldyh@redhat.com>
3993
3994         * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
3995         unspec_volatile.
3996         ("altivec_mfvscr"): Same.
3997
3998 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
3999
4000         * rtl.h (struct rtx_def): Update comments.
4001         (RTL_FLAG_CHECK[12345678]): New.  (rtl_check_failed_flag): Declare.
4002         (RTL_FLAG): New.  (CLEAR_RTX_FLAGS): New.  (flag access macros): Use
4003         RTL_FLAG_CHECK macros with list of expected RTL codes.
4004         * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
4005         (rtl_check_failed_flag): New.
4006         * reload1.c (reload): Use REG macro before changing rtx to MEM.
4007         (reload_cse_noop_set_p): Check rtx code before using access macro.
4008         * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
4009         before using access macro.
4010
4011 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
4012
4013         * doc/rtl.texi (Flags): Update to reflect current usage.
4014
4015 2002-05-06  Roger Sayle  <roger@eyesopen.com>
4016
4017         PR opt/3995
4018         * fold-const.c (sign_bit_p): New function.
4019         (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
4020         (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
4021         Reapply fold when converting (A & C) == C into (A & C) != 0.
4022         (fold_binary_op_with_conditional_arg): Fix typo in comment.
4023
4024 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
4025
4026         * c-common.c (warn_multichar): New.
4027         (c_common_init): Set CPP's warn_multichar.
4028         * c-common.h (warn_multichar): New.
4029         * c-decl.c (warn_multichar): Remove.
4030         * c-lex.c (lex_charconst): Update.
4031         * c-tree.h (warn_multichar): Remove.
4032         * cppexp.c (eval_token): Sign-extend charconst value.
4033         * cppinit.c (cpp_create_reader): Set warn_multichar.
4034         * cpplex.c (cpp_interpret_charconst): Don't sign-extend
4035         each character.  Update prototype.  Sign-extend the result.
4036         * cpplib.h: Fix conditions.
4037         (struct cpp_options): Add new warning flag.
4038         (cpp_interpret_charconst): Update prototype.
4039 doc:
4040         * cpp.texi: Update documentation.
4041
4042 2002-05-06  Vladimir Makarov  <vmakarov@redhat.com>
4043
4044         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
4045         Fix typo in usage of allof instead of unit.
4046
4047 2002-05-06  Richard Henderson  <rth@redhat.com>
4048
4049         * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
4050         and any jump or call for IN.
4051
4052 2002-05-06  Bernd Schmidt  <bernds@redhat.com>
4053
4054         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
4055         -msse2.
4056         * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
4057
4058 2002-05-06  Roger Sayle  <roger@eyesopen.com>
4059
4060         * fold-const.c (lshift-double): Cast the high word to an unsigned
4061         HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
4062         (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
4063         avoid compiler warning.  (fold): Remove redundant code from
4064         BIT_AND_EXPR as integer operands are canonicalized to be arg1.
4065
4066 2002-05-06  Jeff Law  <law@redhat.com>
4067
4068         * pa-protos.h (hppa_fpstore_bypass_p): Declare.
4069         * pa.c (pa_adjust_cost): Remove all true dependency cost
4070         adjustments.  Also remove support for non-DFA scheduling.
4071         * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
4072         to adjust true dependency costs.  Update various comments.
4073         (7100lc, 7200, 7300 scheduling): Simplify by combining the
4074         FP ALU & MPY units into a single unit.
4075
4076 2002-05-06  Catherine Moore  <clm@redhat.com>
4077
4078         * config/v850/v850.c (compute_register_save_size): Make sure
4079         to count all of the registers that will be saved.
4080
4081 Mon May  6 18:03:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
4082
4083         * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
4084
4085 2002-05-06  David S. Miller  <davem@redhat.com>
4086
4087         * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
4088         allow result to overlap input operands in memory.
4089
4090 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
4091
4092 doc:
4093         * cpp.texi: Update multichar charconst docs.
4094
4095 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
4096
4097         * cpplex.c (cpp_interpret_charconst): Sign-extend each
4098         character.  Don't ignore excess characters.  Treat
4099         multicharacter character constants as signed.
4100         (cpp_parse_escape): Clarify diagnostic.
4101
4102 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
4103
4104         * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
4105         use add instead of shift.
4106         (ashldi3_sp64): Likewise.
4107         (ashlsi3_const1, ashldi3_const1): Remove.
4108         * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
4109         * config/sparc/sparc.c (const1_operand): New.
4110
4111 2002-05-05  Jason Thorpe  <thorpej@wasabisystems.com>
4112
4113         * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
4114
4115 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
4116
4117         PR target/6561
4118         * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
4119
4120 2002-05-05  Richard Henderson  <rth@redhat.com>
4121
4122         * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
4123         memory latency adjustments.
4124         (alpha_variable_issue): Remove.
4125         (alpha_use_dfa_pipeline_interface): New.
4126         (alpha_multipass_dfa_lookahead): New.
4127         * config/alpha/alpha.md: Remove define_function_unit scheduling;
4128         include new dfa scheduling.
4129         (attr type): Add none.
4130         (blockage): Use it.
4131         * config/alpha/ev4.md: New.
4132         * config/alpha/ev5.md: New.
4133         * config/alpha/ev6.md: New.
4134
4135 2002-05-05  David S. Miller  <davem@redhat.com>
4136
4137         * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
4138
4139 2002-05-05  Kazu Hirata  <kazu@cs.umass.edu>
4140
4141         * cse.c: Fix formatting.
4142         * emit-rtl.c: Likewise.
4143
4144 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
4145
4146         * genautomata.c (initiate_states): Add additional guard to
4147         initialize `units_array'.
4148
4149 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
4150
4151         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
4152         process_unit_to_form_the_same_automaton_unit_lists,
4153         form_the_same_automaton_unit_lists
4154         check_unit_distributions_to_automata): New prototypes and
4155         functions.
4156         (check_automata): Rename it into `check_automata_insn_issues'.
4157         (unit_decl): New fields `the_same_automaton_unit' and
4158         `the_same_automaton_message_reported_p'.
4159         (unit_decl_t): New typedef.
4160         (the_same_automaton_lists): New gloval variable.
4161         (unit_regexp, unit_set_el, units_array, units_cmp,
4162         output_get_cpu_unit_code_func): Use the typedef.
4163         (evaluate_max_reserv_cycles): Increment
4164         `description->max_insn_reserv_cycles'.
4165         (initiate_states): Don't increment `max_cycles_num'.
4166         (transform_insn_regexps): Move code around transformation of
4167         regexps from `generate'.
4168         (generate): Remove call of `transform_insn_regexps'.
4169         (expand_automata): Call `transform_insn_regexps' and
4170         `check_unit_distributions_to_automata'.  Check errors before
4171         `generate'.
4172
4173         * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
4174         automaton `ultrasparc3_1'.
4175
4176 2002-05-05  Neil Booth  <neil@daikokuya.demon.co.uk>
4177
4178         * c-common.c (c_common_init): Set up CPP arithmetic.
4179         * cppinit.c (cpp_create_reader): Default CPP arithmetic to
4180         something reasonable for the host.
4181         (sanity_checks): Add checks.
4182         (cpp_read_main_file): Call sanity_checks() from here...
4183         (cpp_post_options): ... not here.
4184         * cpplex.c (cpp_interpret_charconst): Get max_chars right.
4185         * cpplib.h (struct cpp_options): New member int_precision.
4186
4187 2002-05-05  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4188
4189         * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
4190
4191 2002-05-04  David S. Miller  <davem@redhat.com>
4192
4193         * config/sparc/linux.h, config/sparc/linux64.h
4194         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
4195
4196         * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
4197         more RTX codes.
4198         * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
4199
4200         * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
4201         of SETs.
4202
4203 2002-05-05  Tim Josling  <tej@melbpc.org.au>
4204
4205         * treelang; New directory for new sample language treelang.
4206
4207 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
4208
4209         * Makefile.in (c-lex.o): Update.
4210         * c-lex.c: Include target.h.
4211         (cb_register_builtins): New.
4212         (init_c_lex): Set builtins callback.
4213         * c-lex.h (cpp_define, cpp_assert): New prototypes.
4214         * cppinit.c (init_builtins): Use callback, including for
4215         GXX_WEAK.
4216         * cpplib.h (struct cpp_callbacks): New member.
4217         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
4218         (TARGET_INITIALIZER): Update.
4219         * target.h (struct gcc_target): New hook.
4220         * tree.c (default_register_cpp_builtins): New.
4221         * tree.h (default_register_cpp_builtins): New.
4222 doc:
4223         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
4224
4225 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
4226
4227         * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
4228         (cpp_post_options): Move sanity checks to...
4229         (sanity_checks): New.
4230         * cpplex.c (maybe_read_ucs): Fix prototype.
4231         (parse_string, cpp_parse_escape): Cast for %c format specifier.
4232         * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
4233         if necessary.
4234
4235 2002-05-04  Bernd Schmidt  <bernds@redhat.com>
4236
4237         * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
4238         builtins.  Use V2DI patterns instead of TI for logical operations.
4239         (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
4240         Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
4241         (ix86_expand_builtins): Change the pattern used for movntdq.
4242         * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
4243         sse2_nandv2di3): New patterns.
4244         (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
4245         on operands.
4246         (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
4247         (cvtdq2pd): Correct mode on operand 1.
4248         (sse2_umulsidi3): Describe without unspec.
4249         (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
4250         machine modes.
4251         (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
4252         (ashlv2di3): Likewise, from sse2_ashlv2di3.
4253         (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
4254         ashlv4si3, ashlv2di3): Use SImode for shift count.
4255         (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
4256         lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
4257         New patterns.
4258         * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
4259         New typedefs.
4260         (__m128i, __m128d): New macros.
4261         (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
4262         _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
4263         _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
4264         _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
4265         _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
4266         _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
4267         _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
4268         _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
4269         _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
4270         _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
4271         _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
4272         _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
4273         _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
4274         _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
4275         _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
4276         _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
4277         _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
4278         _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
4279         _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
4280         _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
4281         _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
4282         _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
4283         _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
4284         _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
4285         _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
4286         _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
4287         _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
4288         _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
4289         _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
4290         _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
4291         _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
4292         _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
4293         _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
4294         _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
4295         _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
4296         _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
4297         _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
4298         functions.
4299         (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
4300         _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
4301
4302 2002-05-04  Kazu Hirata  <kazu@cs.umass.edu>
4303
4304         * dwarf2out.c: Fix formatting.
4305         * varasm.c: Likewise.
4306
4307 2002-05-04  David Edelsohn  <edelsohn@gnu.org>
4308
4309         PR c/6543
4310         * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
4311         clobber and use result as temporary value.
4312
4313 Sat May  4 13:20:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
4314
4315         * expr.c (force_operand): Use expand_simple_* to handle more
4316         cases.
4317
4318 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
4319
4320         * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
4321         and sign-extension.
4322         (lex_charconst): Update for change in prototype of
4323         cpp_interpret_charconst.  Extend from cppchar_t to HOST_WIDE_INT
4324         appropriately.
4325         * cpphash.h (BITS_PER_CPPCHAR_T): New.
4326         * cppinit.c (cpp_create_reader): Initialize them for no
4327         change in semantics.
4328         (cpp_post_options): Add sanity checks.
4329         * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
4330         and truncation issues.  Calculate in type cppchar_t.
4331         (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
4332         (cpp_interpret_charconst): Calculate in type cppchar_t.  Handle
4333         run-time dependent precision correctly.  Return whether the
4334         result is signed or not.
4335         * cpplib.c (dequote_string): Use cppchar_t; update.
4336         * cpplib.h (cppchar_signed_t): New.
4337         struct cpp_options): New precision members.
4338         (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
4339         * cppexp.c (eval_token): Update.
4340
4341 2002-05-03  David S. Miller  <davem@redhat.com>
4342
4343         * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
4344         * config/sparc/sparc.c (sparc_rtx_costs): New function
4345         implementing RTX_COSTS and CONST_COSTS.
4346         * config/sparc/sparc.h (CONST_COSTS): Delete.
4347         (RTX_COSTS_CASES): Define.
4348         (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
4349         the work.
4350
4351         * config/sparc/sparc.md (DFA schedulers): Split out...
4352         * config/sparc/cypress.md, config/sparc/hypersparc.md,
4353         config/sparc/sparclet.md, config/sparc/supersparc.md,
4354         config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
4355
4356         * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
4357         checks on it, always defined for Sparc.
4358
4359         * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
4360         Tweak, and add more detailed comments.
4361
4362 2002-05-03  Zack Weinberg  <zack@codesourcery.com>
4363
4364         * Re-apply patch accidentally reverted with
4365         DFA scheduler merge: remove all rules and variables to slurp
4366         source files out of libiberty and rebuild them with HOST_CC.
4367         ($(HOST_PREFIX_1)varray.o): New rule.
4368         (genattrtab rule): Word wrap.
4369
4370 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
4371
4372         * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
4373         (CPP_SUBTARGET_SPEC): Define.
4374         (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
4375         cpp_subtarget specs.
4376         (CPP_SPEC): Redefine to include %(cpp_subtarget).
4377
4378 2002-05-03  David S. Miller  <davem@redhat.com>
4379
4380         * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
4381         * target.h (struct gcc_target): Delete cycle_display member.
4382
4383         * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
4384         (rtx_needs_barrier): Delete reference to cycle_display unspec.
4385         (ia64_sched_reorder2): Mention need for cycle display handling
4386         once such notes exist.
4387
4388 2002-05-03  Richard Henderson  <rth@redhat.com>
4389
4390         * real.c (etoasc): Strip most trailing zeros for clarity.
4391         * sched-vis.c: Include real.h.
4392         (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
4393         * Makefile.in (sched-vis.o): Add real.h.
4394
4395 2002-05-03  David S. Miller  <davem@redhat.com>
4396
4397         * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
4398         no longer needed.
4399
4400 2002-05-03  Aldy Hernandez  <aldyh@redhat.com>
4401
4402         * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
4403         when we get an out of range literal.
4404         (altivec_expand_ternop_builtin): Same.
4405         (altivec_expand_unop_builtin): Same.
4406         (altivec_expand_builtin): Same, for dss.
4407         (altivec_expand_builtin): Use trees instead of rtl when
4408         determining literal argument validity.
4409
4410 2002-05-03  David S. Miller  <davem@redhat.com>
4411
4412         Delete cycle display scheduling hook.
4413         * config/ia64/ia64.c (ia64_cycle_display,
4414         TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
4415         (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
4416         and use emit_insn_before instead of ia64_emit_insn_before.
4417         * config/ia64/ia64.md (unspec usage): Delete cycle display.
4418         (cycle_display): Delete insn pattern.
4419         * config/sparc/sparc.md (unspec usage): Delete cycle display.
4420         (cycle_display): Delete insn pattern.
4421         * config/sparc/sparc.c (sparc_cycle_display,
4422         TARGET_SCHED_CYCLE_DISPLAY): Delete.
4423         * doc/md.texi (cycle_display): Don't mention.
4424         * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
4425
4426 2002-05-03  Richard Henderson  <rth@redhat.com>
4427
4428         * recog.c (store_data_bypass_p, if_test_bypass_p): New.
4429         * recog.h: Declare them.
4430
4431         * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
4432         * config/sparc/sparc.md: Use store_data_bypass_p instead.
4433         * config/sparc/sparc-protos.h: Update.
4434
4435 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
4436
4437         * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
4438         -D__arch64__.  Add -D_LP64.
4439         (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
4440         from sparc.h.
4441         (CPP_ARCH64_SPEC): Likewise.
4442         (NO_BUILTIN_PTRDIFF_TYPE): Undef.
4443         (NO_BUILTIN_SIZE_TYPE): Undef.
4444
4445 2002-05-03  Vladimir Makarov  <vmakarov@redhat.com>
4446
4447         * genautomata.c (min_issue_delay_pass_states): Change return type
4448         in the prototype.
4449         (min_issue_delay_pass_states): Change the algorithm.
4450         (min_issue_delay): Set up min_insn_issue_delay for the state.
4451         (output_min_issue_delay_table): Interchange the nested loops and
4452         and initiate min_insn_issue_delay for states.
4453
4454 Fri May  3 22:59:15 CEST 2002  Jan Hubicka  <jh@suse.cz>
4455
4456         * cfgcleanup.c (try_optimize_cfg):  Call merge_block only when
4457         jump is simplejump.
4458
4459 Fri May  3 22:53:37 CEST 2002  Jan Hubicka  <jh@suse.cz>
4460
4461         * i386.c  (expand_movstr, expand_clrstr): Fix inline-all-stringops
4462         sequence.
4463
4464 2002-05-03  Richard Henderson  <rth@redhat.com>
4465
4466         PR opt/6534
4467         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
4468         noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
4469         noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
4470         code before JUMP, not EARLIEST.
4471
4472 2002-05-03  Joseph S. Myers  <jsm28@cam.ac.uk>
4473
4474         * c-format.c (check_format_info_main): Don't check for presence of
4475         parameter for * width until after operand number has been read,
4476         and only check for it if format parameters are available.
4477         Fixes PR c/6547.
4478
4479 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
4480
4481         * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
4482         (LINK_SPEC): Undef before defining.
4483
4484 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
4485
4486         PR preprocessor/6489
4487         * tradcpp.c (fixup_newlines): New.
4488         (main, finclude): Use it.
4489
4490 2002-05-03  Richard Sandiford  <rsandifo@redhat.com>
4491
4492         * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
4493         * config/mips/mips.c (mips_unique_section): Strip encoding from
4494         decl name.
4495
4496 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
4497
4498         * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
4499         mode.
4500
4501 2002-05-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4502
4503         * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
4504         (Specific): Removed buildstats references.
4505         (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
4506         (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
4507         Accomodate Solaris versions beyond 8.
4508         (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
4509         (Specific, *-*-solaris2.8): Removed, obsolete.
4510
4511 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
4512
4513         PR target/6542
4514         * config/sparc/sparc.h (leaf_reg_remap): Remove const.
4515         (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
4516         fill leaf_reg_remap with identity.
4517         * config/sparc/sparc.c (leaf_reg_remap): Remove const.
4518
4519 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
4520
4521         * config/h8300/crti.asm: Remove trailing spaces.
4522         * config/h8300/h8300.c: Likewise.
4523         * config/h8300/lib1funcs.asm: Likewise.
4524
4525 2002-05-02  Jason Merrill  <jason@redhat.com>
4526
4527         * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
4528         * c-decl.c (c_init_decl_processing): Use it.
4529         * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
4530         * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
4531         * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
4532
4533 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
4534
4535         * regrename.c: Fix formatting.
4536         * tree.c: Likewise.
4537
4538 Fri May  3 13:34:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
4539
4540         * i386.md (attribute memory): Handle compares properly.
4541
4542 Fri May  3 10:51:38 CEST 2002  Jan Hubicka  <jh@suse.cz>
4543
4544         * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
4545         to none.
4546
4547 2002-05-02  Kazu Hirata  <kazu@cs.umass.edu>
4548
4549         * function.c: Fix formatting.
4550
4551 2002-05-02  Jan Hubicka  <jh@suse.cz>
4552
4553         * haifa-sched.c (schedule_insn): Print table of instructions and
4554         reservations.
4555         (sched_block): Do not print ready list at verbosity level 1.
4556         * sched-vis.c (print_insn): Make global.
4557         * sched-ebb.c (ebb_print_insn): Rename from...
4558         (print_insn): ... this one.
4559         * sched-int.h (print_insn): Declare
4560
4561 2002-05-02  Richard Henderson  <rth@redhat.com>
4562
4563         * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
4564         emitted by cycle_display.
4565
4566 2002-05-02  Loren J. Rittle  <ljrittle@acm.org>
4567
4568         * doc/install.texi (*-*-freebsd*): Update to latest status.
4569
4570 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
4571
4572         PR target/6540
4573         * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
4574         * config/float-sparc.h: Assume 128-bit long double if
4575         __LONG_DOUBLE_128__ is defined.
4576
4577 2002-05-02  Vladimir Makarov  <vmakarov@redhat.com>
4578
4579         * genattrtab.c (write_function_unit_info): Add a dummy element
4580         when num_units == 0.
4581
4582 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4583
4584         * predict.c: (propagate_freq, estimate_bb_frequencies): Use
4585         TYPE_MODE (double_type_node) instead of DFmode.
4586
4587 Thu May  2 19:50:04 CEST 2002  Jan Hubicka  <jh@suse.cz>
4588
4589         * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
4590         jumps post reload.
4591         * toplev.c (rest_of_compilation): Revert Richard's patch.
4592
4593 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4594
4595         * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
4596
4597 2002-05-02  Catherine Moore  <clm@redhat.com>
4598
4599         * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
4600
4601 2002-05-02  Kazu Hirata  <kazu@hxi.com>
4602
4603         * combine.c: Fix comment typos.
4604         * expr.c: Likewise.
4605         * genautomata.c: Likewise.
4606         * stmt.c: Likewise.
4607         * tree.h: Likewise.
4608
4609 2002-05-02  Joseph S. Myers  <jsm28@cam.ac.uk>
4610
4611         * doc/install.texi: State GNAT version requirements.
4612
4613 2002-05-02  Nick Clifton  <nickc@cambridge.redhat.com>
4614
4615         * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
4616         of the frame pointer or arg pointer register which strict register
4617         checking is not enabled.
4618
4619 2002-05-02  Aldy Hernandez  <aldyh@redhat.com>
4620
4621         * gcc.dg/altivec-8.c: New.
4622
4623         * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
4624         PRE_INC and PRE_DEC for altivec modes.
4625
4626 2002-05-01  Bruce Korb  <bkorb@gnu.org>
4627
4628         * fixinc/check.tpl(set-writable): make sure the function exists first
4629         * fixinc/inclhack.def(alpha_assert): fix test_text
4630         * fixinc/tests/base/assert.h: add in missing result
4631
4632 2002-05-01  Jeff Law  <law@redhat.com>
4633
4634         * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
4635         'T' constraint.
4636
4637 2002-05-01  Joel Brobecker  <brobecker@gnat.com>
4638
4639         * dbxout.c (dbxout_type): Emit size information for range types,
4640         as well, but only when using GDB extensions.
4641
4642 2002-05-01  Richard Henderson  <rth@redhat.com>
4643
4644         * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
4645         target-independent gnu binutils date test.
4646
4647 2002-05-01  Richard Henderson  <rth@redhat.com>
4648
4649         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
4650         info before expunging the block.
4651
4652 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
4653
4654         * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
4655         (cpp_post_options): ...but here.  Disable -dD, -dN and -dI when
4656         -M -or -MM is in effect.
4657
4658 2002-05-01  Zack Weinberg  <zack@codesourcery.com>
4659
4660         * config.gcc: Correct test of --enable-obsolete.  Obsolete all
4661         A29k configurations.
4662         * doc/install.texi: Update to match.
4663
4664 2002-05-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4665
4666         PR bootstrap/6514
4667         * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
4668         for duplicates. Always loop over whole list.
4669
4670 Wed May  1 10:32:37 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4671
4672         * reload.c (find_reloads, case 'p'): Set BADOP to 0.
4673
4674 2002-05-01      Joel Sherrill <joel@OARcorp.com>
4675
4676         * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
4677         support routines.
4678
4679 2002-05-01      Joel Sherrill <joel@OARcorp.com>
4680
4681         * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
4682
4683 2002-05-01  David Edelsohn  <edelsohn@gnu.org>
4684
4685         * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
4686         (nabs_nopower): Same.
4687         (floatdisf2): New pattern.
4688         (absdi2): Convert to define_insn_and_split.
4689         (nabsdi2): Same.
4690         (trunctfsf2): Same.
4691         (floatditf2): Same.
4692         (floatsitf2): Same.
4693         (fix_trunctfdi2): Same.
4694         (fix_trunctfsi2): Same.
4695
4696 2002-05-01  Joseph S. Myers  <jsm28@cam.ac.uk>
4697
4698         * doc/install.texi: Update Texinfo version requirement
4699         documentation.
4700
4701 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
4702
4703         PR target/6512, PR target/5628
4704         * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
4705         when memory is not aligned.
4706         (movdf_insn_v9only_vis): Likewise.
4707         * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
4708         temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
4709         (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
4710
4711 2002-05-01  Aldy Hernandez  <aldyh@redhat.com>
4712
4713         * gcc.dg/altivec-7.c: New.
4714
4715         * config/rs6000/altivec.h: Cleanup.
4716
4717 2002-04-30  Aldy Hernandez  <aldyh@redhat.com>
4718
4719         * doc/invoke.texi (Option Summary): Add -mvrsave=.
4720         (RS/6000 and PowerPC Options): Document -mvrsave=.
4721
4722         * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
4723         (rs6000_altivec_vrsave_string): Same.
4724         (rs6000_override_options): Call rs6000_parse_vrsave_option.
4725         (rs6000_parse_vrsave_option): New.
4726         (rs6000_stack_info): Only generate vrsave instructions when
4727         TARGET_ALTIVEC_VRSAVE.
4728
4729         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
4730         (rs6000_altivec_vrsave_string): Define extern.
4731         (rs6000_altivec_vrsave): Same.
4732         (TARGET_ALTIVEC_VRSAVE): New.
4733
4734 2002-04-30  Richard Henderson  <rth@redhat.com>
4735
4736         PR opt/6516
4737         * toplev.c (rest_of_compilation): Don't run cross-jump before
4738         bb-reorder.
4739
4740 2002-04-30  Tom Rix  <trix@redhat.com>
4741
4742         * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
4743         check which_alternative.
4744
4745 2002-04-30  Kazu Hirata  <kazu@hxi.com>
4746
4747         * cpplex.c: Fix comment formatting.
4748         * function.c: Likewise.
4749         * integrate.c: Likewise.
4750         * regrename.c: Likewise.
4751         * sibcall.c: Likewise.
4752         * simplify-rtx.c: Likewise.
4753         * tree-inline.c: Likewise.
4754
4755 2002-04-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4756
4757         * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
4758         hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
4759         hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
4760         hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
4761         * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
4762         * pa/x-ada: New file.  Define ADA_CFLAGS.
4763
4764 2002-04-30  Hans-Peter Nilsson  <hp@bitrange.com>
4765
4766         * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
4767         from MMIX_LAST_REGISTER_FILE_REGNUM.
4768         (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
4769         (struct machine_function): New member highest_saved_stack_register
4770         previously static variable in mmix.c.
4771         (MACHINE_DEPENDENT_REORG): Define.
4772         * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
4773         (MMIX_OUTPUT_REGNO): New.
4774         (mmix_target_asm_function_prologue): Move calculation of last used
4775         saved-stack-register into...
4776         (mmix_machine_dependent_reorg): New function.  Update to also handle
4777         !TARGET_ABI_GNU.
4778         (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
4779         register names, simplify somewhat by new variable regno.
4780         <case 'p'>: Remove fixed FIXME.  Always emit highest used saved
4781         register.
4782         (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
4783         emitting register names.
4784         (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
4785         (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
4786         Remove fixed FIXME.
4787         * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
4788         Declare.
4789
4790         * config/mmix/mmix.md ("divmoddi4"): Update head comment.
4791
4792 2002-04-30  Richard Henderson  <rth@redhat.com>
4793
4794         * config/sparc/sparc.c (emit_soft_tfmode_libcall,
4795         emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
4796         emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
4797         emit_tfmode_cvt): New.
4798         * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
4799         trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
4800         fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
4801         addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
4802         * config/sparc/sparc-protos.h: Update.
4803
4804 2002-04-30  Janis Johnson  <janis187@us.ibm.com>
4805
4806         * install.texi (Final install): Add to the list of info to include
4807         in a report of a successful bootstrap, and add link to 3.1 list.
4808
4809 Tue Apr 30 19:15:36 CEST 2002  Jan Hubicka  <jh@suse.cz>
4810
4811         * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
4812         (mode): Add vector modes
4813         (i387): Kill attribute.
4814         (unit): New attribute.
4815         (length_immediate): Grok new types.
4816         (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
4817         (modrm): Use "unit".
4818         (memory): Handle MMX/SSE properly.
4819         (scheduling descriptions): Kill uses of fop1.
4820         (sse, mmx, fp patterns): Set type and mode properly.
4821
4822 Tue Apr 30 09:31:59 2002  Jeffrey A Law  (law@redhat.com)
4823
4824         * pa.c (override_options): Default to PA8000 scheduling.
4825         * doc/invoke.texi (HP-PA options): Mention newly added 7300
4826         scheduling parameter.
4827
4828         * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
4829         handling of double precision multiplies.
4830
4831         * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
4832         fpdiv and fpsqrt instructions.
4833         (7200 & 7300 scheduling): Fix typo in handling of
4834         store-load and store-store penalties.
4835
4836 2002-04-30  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4837
4838         * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
4839         mips.  Add two missing commas.
4840
4841 2002-04-30  Paolo Carlini  <pcarlini@unitus.it>
4842
4843         * doc/contrib.texi (Contributors): Update Paolo Carlini's
4844         and Benjamin Kosnik's entries.
4845
4846 2002-04-29  David S. Miller  <davem@redhat.com>
4847
4848         * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
4849         SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
4850         * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
4851         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
4852
4853 2002-04-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4854
4855         * combine.c (find_split_point): Use gen_int_mode.
4856
4857 2002-04-29  Vladimir Makarov  <vmakarov@redhat.com>
4858
4859         Merging code from dfa-branch:
4860
4861         2002-04-24  Vladimir Makarov  <vmakarov@redhat.com>
4862
4863         * genautomata.c (output_reserv_sets): Fix typo.
4864
4865         2002-04-23  Vladimir Makarov  <vmakarov@redhat.com>
4866
4867         * genautomata.c (output_reserv_sets): Remove
4868         next_cycle_output_flag.
4869
4870         Thu Apr 18 08:57:06 2002  Jeffrey A Law  (law@redhat.com)
4871
4872         * sched-rgn.c (init_ready_list): Make the DFA code handle
4873         USE/CLOBBER insns in the same way as the traditional
4874         scheduler.
4875         (new_ready): Similarly..
4876
4877         2002-04-17  Vladimir Makarov  <vmakarov@redhat.com>
4878
4879         * haifa-sched.c (schedule_block): Change the DFA state only after
4880         issuing insn.
4881
4882         Wed Apr 17 15:38:36 2002  Jeffrey A Law  (law@redhat.com)
4883
4884         * pa.c (hppa_use_dfa_pipeline_interface): New function.
4885         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
4886         (override_options): Add PA7300 scheduling support.
4887         (pa_adjust_cost): Update various comments.  Properly
4888         handle anti and output dependencies when using the
4889         DFA scheduler.
4890         (pa_issue_rate): Add PA7300 scheduling support.
4891         (pa_can_combine_p): Call extract_insn before calling
4892         constrain_operands (taken from mainline tree).
4893         * pa.h (enum processor_type): Add PROCESSOR_PA7300.
4894         * pa.md (cpu attr): Add 7300.  Rewrite pipeline
4895         descriptions using DFA descriptions.  Add PA7300
4896         scheduling support.
4897
4898         2002-03-30  David S. Miller  <davem@redhat.com>
4899
4900         Add UltraSPARC-III DFA scheduling support.
4901         * config/sparc/sparc.md (define_attr type): Add fpcrmove.
4902         Update FP conditional move on register insn patterns to use it, as
4903         appropriate.
4904         (define_attr cpu): Add ultrasparc3.
4905         (define_attr us3load_type): New, update integer load patterns to
4906         set it, as appropriate.
4907         (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
4908         (rest): Add UltraSPARC3 scheduling description.
4909         * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
4910         (PROCESSOR_ULTRASPARC3): New.
4911         ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
4912         ({ASM,CPP}_CPU_SPEC): Likewise.
4913         (REGISTER_MOVE_COST): Likewise.
4914         (RTX_COSTS): Likewise.
4915         * config/sparc/sparc.c (sparc_override_options,
4916         sparc_initialize_trampoline, sparc64_initialize_trampoline,
4917         sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
4918         sparc_issue_rate): Likewise.
4919         * config/sparc/sol2.h: Likewise.
4920         * config/sparc/sol2-sld-64.h: Likewise.
4921         * config/sparc/linux64.h: Likewise.
4922
4923         2002-03-22  Vladimir Makarov  <vmakarov@redhat.com>
4924
4925         * doc/md.texi: Add comments about usage the latency time for the
4926         different dependencies and about case when two or more conditions
4927         in different define_insn_reservations returns TRUE for an insn.
4928
4929         * doc/md.texi: Add reference for automaton based pipeline
4930         description.
4931
4932         2002-03-04  Vladimir Makarov  <vmakarov@redhat.com>
4933
4934         * doc/passes.texi: Add missed information about genattrtab.
4935
4936         2002-03-01  Vladimir Makarov  <vmakarov@redhat.com>
4937
4938         * genautomata.c (output_automata_list_transition_code): Check
4939         automata_list on NULL.
4940
4941         2002-02-28  Vladimir Makarov  <vmakarov@redhat.com>
4942
4943         * genautomata.c (output_insn_code_cases,
4944         output_automata_list_min_issue_delay_code,
4945         output_automata_list_transition_code,
4946         output_automata_list_state_alts_code): Comment the functions.
4947
4948         2002-02-22  Vladimir Makarov  <vmakarov@redhat.com>
4949
4950         * genautomata.c (automata_list_el_t): New typedef.
4951         (get_free_automata_list_el,free_automata_list_el,
4952         free_automata_list, automata_list_hash, automata_list_eq_p,
4953         initiate_automata_lists, automata_list_start, automata_list_add,
4954         automata_list_finish, finish_automata_lists,
4955         output_insn_code_cases, output_automata_list_min_issue_delay_code,
4956         output_automata_list_transition_code,
4957         output_automata_list_state_alts_code, add_automaton_state,
4958         form_important_insn_automata_lists): New functions and prototypes.
4959         (insn_reserv_decl): Add members important_automata_list and
4960         processed_p.
4961         (ainsn): Add members important_p.
4962         (automata_list_el): New structure.
4963         (first_free_automata_list_el, current_automata_list,
4964         automata_list_table): New global variables.
4965         (create_ainsns): Initiate member important_p.
4966         (output_internal_min_issue_delay_func): Generate the switch and
4967         call output_insn_code_cases.
4968         (output_internal_trans_func, output_internal_state_alts_func):
4969         Ditto.
4970         (generate): Call initiate_automata_lists.
4971         (automaton_states): New global variable.
4972         (expand_automata): Call form_important_insn_automata_lists.
4973         (write_automata): Call finish_automata_lists.
4974
4975         2002-02-21  Vladimir Makarov  <vmakarov@redhat.com>
4976
4977         * genautomata.c (add_excls, add_presence_absence): Check that
4978         cpu units in the sets belong the same automaton.
4979
4980         * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
4981         about that cpu units in the sets belong the same automaton.
4982
4983         * doc/md.texi: Ditto.
4984
4985         2001-12-20  Naveen Sharma  <naveens@noida.hcltech.com>
4986                     Nitin Gupta  <niting@noida.hcltech.com>
4987
4988         * config/sh/sh.c (sh_use_dfa_interface): New function.
4989
4990         (sh_issue_rate): New Function.
4991         TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
4992         TARGET_SCHED_ISSUE_RATE: define.
4993
4994         * config/sh/sh.md: Add DFA based pipeline description for SH4.
4995
4996         (define_attr insn_class): New attribute used for DFA
4997          scheduling.
4998         (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
4999         (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
5000          cmpeqdi_t): Likewise.
5001
5002         (add,addc1,addsi3,subc,subc1,*subsi3_internal,
5003          negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
5004          ex_group.
5005         (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
5006
5007         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
5008
5009         * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
5010         break.
5011
5012         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
5013
5014         * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
5015         (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
5016         necessary.
5017         (output_dfa_start_func): Initiate new variable insn_codes_length,
5018         (write_automata): Output definition of the new variable.
5019
5020         2001-10-02  David S. Miller  <davem@redhat.com>
5021
5022         * haifa-sched.c (advance_one_cycle): New function.
5023         (schedule_block): Use it.
5024         (queue_to_ready): Use it, and also make sure to advance the DFA
5025         state on all stall cycles, not just those where insn_queue links
5026         are found.
5027
5028         2001-10-02  Richard Sandiford  <rsandifo@redhat.com>
5029
5030         * haifa-sched.c (max_issue): Remove last_p argument.  Only return
5031         non-zero if the highest-priority instruction could be scheduled.
5032         (choose_ready): Remove last argument from max_issue call.
5033
5034         2001-09-28  David S. Miller  <davem@redhat.com>
5035
5036         * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
5037         ultrasparc and 3 for other multi-issue sparcs.
5038
5039         2001-09-27  David S. Miller  <davem@redhat.com>
5040
5041         * config/sparc/sparc.md (cycle_display): New pattern.
5042         * config/sparc/sparc.c (sparc_cycle_display): New.
5043         (TARGET_SCHED_CYCLE_DISPLAY): Set it.
5044
5045         2001-09-25  David S. Miller  <davem@redhat.com>
5046
5047         Convert all of Sparc scheduling to DFA
5048         * config/sparc/sparc.md: Kill all define_function_unit
5049         directives and replace with DFA equivalent.
5050         * config/sparc/sparc.c (ultrasparc_adjust_cost,
5051         mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
5052         ultra_fpmode_conflict_exists, ultra_find_type,
5053         ultra_build_types_avail, ultra_flush_pipeline,
5054         ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
5055         ultrasparc_variable_issue, ultrasparc_sched_init,
5056         sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
5057         ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
5058         ultra_cur_hist, ultra_cycles_elapsed): Kill.
5059         (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
5060         ultrasparc_store_bypass_p): New.
5061         * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
5062         Declare.
5063
5064         2001-09-24  David S. Miller  <davem@redhat.com>
5065
5066         * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
5067         ready->vec[foo] not ready[foo].
5068
5069         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
5070
5071         * doc/md.texi: Correct examples for define_insn_reservations
5072         `mult' and `div'.
5073
5074         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
5075
5076         * genautomata.c (create_automata): Print message about creation of
5077         each automaton.
5078         (generate): Remove printing meease about creation of
5079         automata.
5080
5081         2001-09-05  David S. Miller  <davem@redhat.com>
5082
5083         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
5084         * config/sparc/linux64.h: Likewise.
5085
5086         2001-08-31  Vladimir Makarov  <vmakarov@redhat.com>
5087
5088         * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
5089         schedule_block, sched_init, sched_finish): Add missed calls of
5090         use_dfa_pipeline_interface.
5091
5092         * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
5093         Ditto.
5094
5095         * sched-vis.c (get_visual_tbl_length): Ditto.
5096
5097         2001-08-27  Richard Henderson  <rth@redhat.com>
5098
5099         * genattr.c (main): Emit state_t even when not doing scheduling.
5100
5101         2001-08-27  Richard Henderson  <rth@redhat.com>
5102
5103         * genautomata.c (expand_automata): Always create a description.
5104
5105         2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
5106
5107         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
5108         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
5109         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
5110         RTL constructions.
5111
5112         * genattr.c (main): New variable num_insn_reservations.  Increase
5113         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
5114         pipeline hazard recognizer interface.
5115
5116         * genattrtab.h: New file.
5117
5118         * genattrtab.c: Include genattrtab.h.
5119         (attr_printf, check_attr_test, make_internal_attr,
5120         make_numeric_value): Move protypes into genattrtab.h.  Define them
5121         as external.
5122         (num_dfa_decls): New global variable.
5123         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
5124         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
5125         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
5126         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
5127
5128         * genautomata.c: New file.
5129
5130         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
5131
5132         * sched-int.h: (curr_state): Add the external definition for
5133         automaton pipeline interface.
5134         (haifa_insn_data): Add comments for members blockage and units.
5135
5136         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
5137         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
5138         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
5139         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
5140         TARGET_SCHED_DFA_POST_CYCLE_INSN,
5141         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
5142         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
5143         macros.
5144         (TARGET_SCHED): Use the new macros.
5145
5146         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
5147         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
5148         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
5149         dfa_bubble): New members in gcc_target.sched.
5150
5151         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
5152         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
5153         (insn_queue): Redefine it as pointer to array.
5154         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
5155         INSN_QUEUE_SIZE.
5156         (max_insn_queue_index_macro_value): New variable.
5157         (curr_state, dfa_state_size, ready_try): New varaibles for
5158         automaton interface.
5159         (ready_element, ready_remove, max_issue): New function prototypes
5160         for automaton interface.
5161         (choose_ready): New function prototype.
5162         (insn_unit, blockage_range): Add comments.
5163         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
5164         FUNCTION_UNITS_SIZE == 0.
5165         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
5166         actual_hazard, potential_hazard): Add comments.
5167         (insn_cost): Use cost -1 as undefined value.  Remove
5168         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
5169         pipeline interface.
5170         (ready_element, ready_remove): New functions for automaton
5171         interface.
5172         (schedule_insn): Add new code for automaton pipeline interface.
5173         (queue_to_ready): Add new code for automaton pipeline interface.
5174         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
5175         (debug_ready_list): Print newline when the queue is empty.
5176         (max_issue): New function for automaton pipeline interface.
5177         (choose_ready): New function.
5178         (schedule_block): Add new code for automaton pipeline interface.
5179         Print ready list before scheduling each insn.
5180         (sched_init): Add new code for automaton pipeline interface.
5181         Initiate insn cost by -1.
5182         (sched_finish): Free the current automaton state and finalize
5183         automaton pipeline interface.
5184
5185         * sched-rgn.c: Include target.h.
5186         (init_ready_list, new_ready, debug_dependencies): Add new code for
5187         automaton pipeline interface.
5188
5189         * sched-vis.c: Include target.h.
5190         (get_visual_tbl_length): Add code for automaton interface.
5191         (target_units, print_block_visualization):  Add comments.
5192
5193         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
5194         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
5195         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
5196         (getruntime.o, genautomata.o): New entries.
5197         (genattrtab.o): Add new dependency file genattrtab.h.
5198         (genattrtab): Add new dependencies.  Link it with `libm.a'.
5199         (getruntime.o, hashtab.o): New entries for canadian cross.
5200
5201         * doc/md.texi: Description of automaton based model.
5202
5203         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
5204         Add comments.
5205         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
5206         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
5207         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
5208         TARGET_SCHED_DFA_POST_CYCLE_INSN,
5209         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
5210         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
5211         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
5212         hook descriptions.
5213         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
5214         MAX_DFA_ISSUE_RATE): New macro descriptions.
5215
5216         * doc/contrib.texi: Add dfa based scheduler contribution.
5217
5218         * doc/gcc.texi: Add more information about genattrtab.
5219
5220 Mon Apr 29 17:19:10 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5221
5222         * reload1.c (eliminate_regs, case SUBREG): Fix typo in
5223         adjust_address_nv call.
5224
5225 2002-04-29  Janis Johnson  <janis187@us.ibm.com>
5226
5227         * doc/install.texi (Testing): Provide additional information, and
5228         a stronger encouragement, for running the testsuites.
5229
5230 2002-04-29  DJ Delorie  <dj@redhat.com>
5231
5232         * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
5233         given in upper case.
5234
5235 2002-04-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5236
5237         * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
5238         Solaris 2 <widec.h> if missing.
5239         * fixinc/fixincl.x: Regenerate.
5240         * fixinc/tests/base/widec.h: New file.
5241
5242 2002-04-29  Nick Clifton  <nickc@cambridge.redhat.com>
5243
5244         * toplev.c (f_options): Add "profile" switch so that
5245         -fno-profile can be used to disable -p.
5246
5247 2002-04-29  Bernd Schmidt  <bernds@redhat.com>
5248
5249         * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
5250         UV2DImode.
5251         * tree.c (build_common_tree_nodes_2): Likewise.
5252         * tree.h (enum tree_index): Likewise.
5253         (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
5254
5255         * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
5256         entries.
5257         (init_mmx_sse_builtins): Initialize SSE2 builtins.
5258         (ix86_expand_builtin): Add support for SSE2 builtins.
5259         * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
5260         (VALID_SSE_REG_MODE): Use it.
5261         (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
5262         (enum ix86_builtins): Add SSE2 builtins.
5263         * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
5264         movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
5265         addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
5266         divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
5267         sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
5268         vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
5269         vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
5270         sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
5271         cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
5272         cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
5273         cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
5274         ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
5275         subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
5276         mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
5277         sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
5278         sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
5279         sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
5280         gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
5281         ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
5282         ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
5283         sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
5284         sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
5285         sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
5286         sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
5287         sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
5288         sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
5289         lfence_insn): New patterns.
5290         (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
5291         sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
5292
5293 Mon Apr 29 17:03:24 CEST 2002  Jan Hubicka  <jh@suse.cz>
5294
5295         * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
5296
5297 2002-04-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5298
5299         * doc/contrib.texi (Contributors): Add Paolo Carlini and
5300         Janis Johnson.
5301         Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
5302         Refer to Objective-C instead of ObjC, SPARC instead of sparc,
5303         and CPU instead of cpu.
5304
5305 Mon Apr 29 13:36:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
5306
5307         * toplev.c (flag_if_conversion, flag_if_conversion2): New static
5308         variables.
5309         (lang_independent_options): Add -fif-conversion, -fif-conversion2
5310         (rest_of_compilation): Do if conversion only when asked for.
5311         (parse_options_and_default_flags): Set new variables to 1 for -O1
5312         * invoke.texi (-fif-conversion, -fif-conversion2): Document.
5313
5314 Mon Apr 29 13:02:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
5315
5316         * i386.c (dbx64_register_map): Fix typo.
5317
5318 Mon Apr 29 12:18:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
5319
5320         * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
5321         real_one_half, real_bb_freq_max): New static variables.
5322         (debug_profile_bbauxs): Kill.
5323         (process_note_predictions): Kill unused variable.
5324         (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
5325         volatile double.
5326         (propagate_freq): Use REAL_ARITHMETICS.
5327         (estimate_bb_frequencies): Likevise; init new static variables.
5328         * Makefile.in (predict.o): Add dependency on real.h
5329
5330 2002-04-28  David S. Miller  <davem@redhat.com>
5331
5332         PR target/6500
5333         * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
5334         64-bit TARGET_V9.  Do not use prefetch page, use prefetch for
5335         several {reads,writes} instead.
5336         * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
5337         Define.
5338
5339 2002-04-27  David S. Miller  <davem@redhat.com>
5340
5341         PR target/6494
5342         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
5343         of the stack bias.
5344
5345         * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
5346         including signal.h and sys/ucontext.h, not needed.
5347
5348 2002-04-29  Hans-Peter Nilsson  <hp@bitrange.com>
5349
5350         * varasm.c (output_constant_def): Correct test for not calling
5351         ENCODE_SECTION_INFO for INTEGER_CST.
5352
5353 2002-04-29  Neil Booth  <neil@daikokuya.demon.co.uk>
5354
5355         * cppexp.c (lex): Move some code to _cpp_parse_expr, but
5356         keep most cases as function eval_token.
5357         (eval_token): New function.
5358         (_cpp_parse_expr): Read token here for improved diagnostics.
5359         Don't use op_as_text.  Detect bad ':' here.
5360         (reduce): Don't detect bad ':' here.
5361         (op_as_text): Remove.
5362         * cpphash.h (_cpp_test_assertion): Change prototype.
5363         * cpplib.c (_cpp_test_assertion): Change prototype.
5364
5365 2002-04-28  Richard Henderson  <rth@redhat.com>
5366
5367         PR c/5154
5368         * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
5369         (ggc_mark_rtx_children): New.
5370
5371 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
5372
5373         PR target/6496
5374         * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
5375         after call peepholes for UltraSPARC.
5376         (call + jump 64-bit peepholes): Remove.
5377
5378 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5379
5380         PR c/6497
5381         * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
5382         result as temporary value.
5383
5384 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
5385
5386         PR c++/6396
5387         * toplev.c (rest_of_compilation): Only run regrename and copy
5388         propagation if optimizing.
5389
5390 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
5391
5392         PR optimization/6475
5393         * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
5394         register of REGNO_DECL (i).
5395         * Makefile.in (reload1.o): Add $(TREE_H).
5396
5397 2002-04-28  Neil Booth  <neil@daikokuya.demon.co.uk>
5398
5399         * cppexp.c (lex): Update to use state.skip_eval.
5400         (struct op): Remove prio and flags members.
5401         (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
5402         SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
5403         (LEFT_ASSOC): New macro.
5404         (optab): New table of operator priorities and flags.
5405         (SHIFT): Update.
5406         (_cpp_parse_expr): Clean up logic.  Return bool.  Use a
5407         malloc-ed parser stack.
5408         (reduce): New; reduce the operator stack.
5409         (_cpp_expand_op_stack): Expand the operator stack as necessary.
5410         * cpphash.h (struct op): Predeclare.
5411         (struct cpp_reader): New members op_stack, op_limit.
5412         (struct lexer_state): New member skip_eval.
5413         (_cpp_parse_expr): Update.
5414         (_cpp_expand_op_stack): New.
5415         * cpplib.c (do_if): Update.
5416         * cppinit.c (cpp_create_reader): Create op stack.
5417         (cpp_destroy): And destroy it.
5418         * cpplib.h (CPP_LAST_CPP_OP): Correct.
5419         (TTYPE_TABLE): Correct.
5420
5421 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5422
5423         PR c/6343
5424         * c-decl.c (duplicate_decls): Call merge_weak.
5425         * c-pragma.c (apply_pragma_weak): Warn about misuse.
5426         * output.h (merge_weak): Prototype merge_weak.
5427         * varasm.c (merge_weak): New function.
5428         (declare_weak): Make sure we don't give an error on VAR_DECLs.
5429         Mark RTL with SYMBOL_REF_WEAK.
5430
5431 2002-04-27  Kurt Garloff <garloff@suse.de>
5432
5433         * tree-inline.c (inlinable_function_p): Improve heuristics
5434         by using a smoother function to cut down allowable inlinable size.
5435         * param.def: Add parameters max-inline-insns-single,
5436         max-inline-slope, min-inline-insns that determine the exact
5437         shape of the above function.
5438         * param.h: Likewise.
5439
5440 2002-04-26  Richard Henderson  <rth@redhat.com>
5441
5442         * c-parse.in (malloced_yyss, malloced_yyvs): New.
5443         (yyoverflow): Re-add.  Set them.
5444         (free_parser_stacks): New.
5445         * c-common.h: Declare it.
5446         * c-lex.c (c_common_parse_file): Call it.
5447
5448 2002-04-26  Richard Henderson  <rth@redhat.com>
5449
5450         * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
5451         for fallthru search.
5452
5453 2002-04-26  Eric Christopher  <echristo@redhat.com>
5454
5455         PR optimization/3700
5456         * config/mips/mips.c (mips_issue_rate): Define.  New function.
5457         (TARGET_SCHED_ISSUE_RATE): Use.
5458
5459 2002-04-25  David S. Miller  <davem@redhat.com>
5460
5461         PR target/6422
5462         * reorg.c (optimize_skip): Do not allow exception causing
5463         instructions to be considered for delay slots.
5464         (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
5465         (relax_delay_slots): Do not try to consider exception causing
5466         instructions as redundant.
5467
5468 2002-04-26  Richard Henderson  <rth@redhat.com>
5469
5470         PR c/5225
5471         * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
5472
5473 2002-04-26  Mark Mitchell  <mark@codesourcery.com>
5474
5475         PR bootstrap/6445
5476         * config/i386/i386.md (untyped_call): Return the value in a float
5477         register if TARGET_FLOAT_RETURNS_IN_80387, not just if
5478         TARGET_80387.
5479
5480 2002-04-26  Alexandre Oliva  <aoliva@redhat.com>
5481
5482         * tree.c (tree_int_cst_lt): Compare constants whose types differ
5483         in unsigned-ness correctly.
5484
5485 2002-04-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5486
5487         * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
5488         portable runtime model.
5489
5490 2002-04-26  Richard Henderson  <rth@redhat.com>
5491
5492         * c-parse.in (yyoverflow): Revert.
5493
5494 2002-04-26  David Edelsohn  <edelsohn@gnu.org>
5495             Richard Henderson  <rth@redhat.com>
5496
5497         * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
5498         result as temporary value.
5499
5500 2002-04-26  Richard Henderson  <rth@redhat.com>
5501
5502         PR c/3581
5503         * c-common.c (fix_string_type): Split out of ...
5504         (combine_strings): ... here.  Take a varray, not a tree list.
5505         (c_expand_builtin_printf): Use fix_string_type.
5506         * c-common.h: Update decls.
5507         * c-parse.in (string): Remove.  Update all uses to use STRING
5508         instead, and not call combine_strings.
5509         (yylexstring): New.
5510         (_yylex): Use it.
5511         * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
5512         (build_asm_stmt): Likewise.
5513         * objc/objc-act.c (my_build_string): Use fix_string_type.
5514         (build_objc_string_object): Build varray for combine_strings.
5515
5516 2002-04-26  Bo Thorsen  <bo@suse.co.uk>
5517
5518         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
5519         x86-64.
5520
5521 2002-04-26  Neil Booth  <neil@daikokuya.demon.co.uk>
5522
5523         * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
5524         (HAVE_NO_R_OPERAND): Remove.
5525         (HAVE_VALUE): Remove.
5526         (op_to_prio): Update.
5527         (UNARY): Don't alter flags.
5528         (_cpp_parse_expr): want_value used to indicate whether
5529         a number or unary operator is expected next.  Distinguish
5530         unary and binary +/-.
5531         (op_as_text): Update for unary operators.
5532
5533 2002-04-25  Richard Henderson  <rth@redhat.com>
5534
5535         PR c/2161
5536         * c-parse.in (yyoverflow): New.
5537
5538 2002-04-25  Richard Henderson  <rth@redhat.com>
5539
5540         PR c/2098
5541         * c-common.c (shorten_compare): Simplfy conditions leading to
5542         the generation of a warning.
5543
5544 2002-04-25  Richard Henderson  <rth@redhat.com>
5545
5546         PR c/2035
5547         * expmed.c (extract_bit_field): Fall through to generic code rather
5548         than aborting on subreg special case.
5549
5550 2002-04-25  David S. Miller  <davem@redhat.com>
5551
5552         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
5553         for DECL being NULL.
5554
5555 2002-04-25  Steve Christiansen  <smc@us.ibm.com>
5556
5557         * doc/md.texi (Machine Constraints): Add IA-64 constraints.
5558
5559 2002-04-25  Eric Botcazou  <ebotcazou@multimania.com>
5560
5561         * c-decl.c (grokdeclarator): Remove outdated ??? note
5562         on invalid declaration of flexible array members.
5563
5564 2002-04-25  Richard Henderson  <rth@redhat.com>
5565
5566         * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
5567
5568 2002-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
5569
5570         * config/s390/s390.c (s390_emit_epilogue): Always restore registers
5571         needed by the compiler, even if they are used as global regs.
5572
5573 2002-04-25  Matt Hiller  <hiller@redhat.com>
5574
5575         * mips.c (mips_class_max_nregs, mips_register_move_cost): New
5576         functions.
5577         * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
5578         of the corresponding functions.
5579         * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
5580         New prototypes.
5581
5582 2002-04-25  Matt Hiller  <hiller@redhat.com>
5583
5584         * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
5585
5586         (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
5587         (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
5588         registers, adjust comment accordingly.
5589         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
5590         reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
5591         DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
5592         for coprocessor registers.
5593         (ADDITIONAL_REGISTER_NAMES): Include
5594         ALL_COP_ADDITIONAL_REGISTER_NAMES.
5595
5596         (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
5597         COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
5598         COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
5599         COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
5600         COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
5601
5602         (mips_char_to_class): Adjust comment to include coprocessor
5603         constraint letters.
5604
5605         * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
5606         New functions.
5607         (mips_reg_names, mips_regno_to_class): Include coprocessor
5608         information.
5609         (mips_sw_reg_names): Ditto, make non-static.
5610         (mips_move_1word): Handle moves to and from coprocessor registers.
5611         (mips_move_2words): Handle moves to and from coprocessor
5612         registers.
5613         (mips_class_max_nregs, mips_register_move_cost): Handle
5614         coprocessor register classes.
5615         (override_options): Initialize mips_char_to_class and
5616         mips_hard_regno_mode_ok properly for coprocessor registers.
5617
5618         * config/mips/mips.md (movdi_internal, movdi_internal2,
5619         movsi_internal1, movsi_internal2): Add constraint-sets for
5620         coprocessor registers.
5621         * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
5622         * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
5623         isn't mips.
5624         * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
5625         * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
5626         isn't mips.
5627         * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
5628         * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
5629         isn't mips.
5630         * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
5631         * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
5632         isn't mips.
5633
5634         * doc/tm.texi: Document feature.
5635
5636 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
5637
5638         * integrate.c (function_attribute_inlinable_p): Simplify.
5639         Check the table pointer is not NULL.
5640
5641 2002-04-25  Steven Bosscher  <S.Bosscher@student.tudelft.nl>
5642
5643         * doc/c-tree.texi: Fix typo in introduction.
5644
5645 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
5646
5647         * c-common.h (c_common_parse_file): Update.
5648         * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
5649         * c-lex.c (YYDEBUG): Get from c-lex.h.
5650         (c_common_parse_file): Update.
5651         * c-lex.h (YYDEBUG, yydebug): New.
5652         * c-parse.in (YYDEBUG): Get from c-lex.h.
5653         (c_set_yydebug): Remove.
5654         * c-tree.h (c_set_yydebug): Remove.
5655         * langhooks-def.h (lhd_do_nothing_i): New.
5656         (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
5657         (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
5658         * langhooks.c  (lhd_do_nothing_i): New.
5659         (lhd_set_yydebug): Remove.
5660         * langhooks.h (struct lang_hooks): Update.
5661         * toplev.c (set_yydebug): New.
5662         (compile_file): Update call to parse_file hook.
5663         (decode_d_option): Update.
5664 objc:
5665         * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
5666
5667 Wed Apr 24 23:45:37 2002  J"orn Rennecke <joern.rennecke@superh.com>
5668
5669         * loop.c (load_mems): Don't change the interface of called functions.
5670
5671         * calls.c (expand_call): Take current_function_pretend_args_size
5672         into account when setting argblock for sibcalls.
5673
5674 2002-04-24  Matt Hiller  <hiller@redhat.com>
5675
5676         * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
5677         * c-lex.c: Ditto.
5678
5679         * cpplex.c (skip_line_comment): Process comment one multibyte
5680         character at a time rather than one char at a time, if
5681         appropriate.
5682         (parse_string): Process string one multibyte character at a time
5683         rather than one char at a time, if appropriate.
5684         * c-lex.c (lex_string): Lex and copy multibyte strings
5685         appropriately.
5686         * cpplib.h (cppchar_t): Change to unsigned.
5687
5688 2002-04-24  Richard Henderson  <rth@redhat.com>
5689
5690         PR c/3467
5691         * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
5692         for c99.
5693
5694 Wed Apr 24 21:51:54 2002  J"orn Rennecke <joern.rennecke@superh.com>
5695
5696         * sh.c (sh_va_arg): If argument was passed by reference,
5697         dereference the pointer.
5698
5699         * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
5700
5701         * sh.md (divsi3_i4_media): Use match_operand for input values
5702         rather than hard registers.
5703         (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
5704         unnecessarily through hard registers.  Keep copies of pseudo
5705         registers outside of the libcall sequence.
5706
5707         * sh.md (casesi_shift_media): Add modes.
5708
5709         * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
5710         values in memory.
5711
5712 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
5713
5714         * attribs.c (c_common_attribute_table): Move table and handlers
5715         to c-common.c.
5716         (format_attribute_table, lang_attribute_table,
5717         lang_attribute_common): Remove.
5718         (init_attributes): Replace NULL pointers with pointers to the
5719         empty table.
5720         (handle_packed_attribute, handle_nocommon_attribute,
5721         handle_common_attribute, handle_noreturn_attribute,
5722         handle_noinline_attribute, handle_always_inline_attribute,
5723         handle_used_attribute, handle_unused_attribute,
5724         handle_const_attribute, handle_transparent_union_attribute,
5725         handle_constructor_attribute, handle_destructor_attribute,
5726         handle_mode_attribute, handle_section_attribute,
5727         handle_aligned_attribute, handle_weak_attribute,
5728         handle_alias_attribute, handle_visibility_attribute,
5729         handle_no_instrument_function_attribute, handle_malloc_attribute,
5730         handle_no_limit_stack_attribute, handle_pure_attribute,
5731         handle_deprecated_attribute, handle_vector_size_attribute,
5732         vector_size_helper): Move to c-common.c.
5733         * c-common.c (c_common_attribute_table,
5734         handle_packed_attribute, handle_nocommon_attribute,
5735         handle_common_attribute, handle_noreturn_attribute,
5736         handle_noinline_attribute, handle_always_inline_attribute,
5737         handle_used_attribute, handle_unused_attribute,
5738         handle_const_attribute, handle_transparent_union_attribute,
5739         handle_constructor_attribute, handle_destructor_attribute,
5740         handle_mode_attribute, handle_section_attribute,
5741         handle_aligned_attribute, handle_weak_attribute,
5742         handle_alias_attribute, handle_visibility_attribute,
5743         handle_no_instrument_function_attribute, handle_malloc_attribute,
5744         handle_no_limit_stack_attribute, handle_pure_attribute,
5745         handle_deprecated_attribute, handle_vector_size_attribute,
5746         vector_size_helper): Move from attribs.c.
5747         * c-common.h (c_common_attribute_table,
5748         c_common_format_attribute_table): New.
5749         * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
5750         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
5751         * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
5752         LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
5753         (LANG_HOOKS_INITIALIZER): Update.
5754         * langhooks.h (struct lang_hooks): 3 new attribute hooks.
5755         * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
5756         * target.h: Update comment.
5757         * tree.c (default_target_attribute_table): Remove.
5758         * tree.h (default_target_attribute_table, format_attribute_table,
5759         lang_attribute_table, lang_attribute_common): Remove.
5760 objc:
5761         * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
5762         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
5763
5764 2002-04-24  Jason Merrill  <jason@redhat.com>
5765
5766         * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
5767         * dwarf2out.c (dwarf_attr_name): Support it.
5768         (gen_array_type_die): Emit it.
5769         (lookup_type_die): No special handling for VECTOR_TYPE.
5770         (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
5771
5772 2002-04-24  Richard Henderson  <rth@redhat.com>
5773
5774         * config/mips/mips.md (movdi_usd): Renumber.
5775
5776 2002-04-24  David S. Miller  <davem@redhat.com>
5777
5778         PR target/6420
5779         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
5780         32-bit Sparc and current_function_returns_struct is true.
5781
5782 Wed Apr 24 13:48:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
5783
5784         * loop.c (canonicalize_condition): Use gen_int_mode.
5785
5786 2002-04-24  Aldy Hernandez  <aldyh@redhat.com>
5787
5788         * config/rs6000/altivec.h: Cleanup file.  Add non individual
5789         variants.
5790         (vec_vaddubm): New.
5791         (vec_vadduhm): New.
5792         (vec_vadduwm): New.
5793         (vec_vaddfp): New.
5794         (vec_vaddcuw): New.
5795         (vec_vaddubs): New.
5796         (vec_vaddsbs): New.
5797         (vec_vadduhs): New.
5798         (vec_vadduws): New.
5799         (vec_vaddsws): New.
5800         (vec_vand): New.
5801         (vec_vandc): New.
5802         (vec_vavgub): New.
5803         (vec_vavgsb): New.
5804         (vec_vavguh): New.
5805         (vec_vavgsh): New.
5806         (vec_vavguw): New.
5807         (vec_vavgsw): New.
5808         (vec_vrfip): New.
5809         (vec_vcmpbfp): New.
5810         (vec_vcmpequb): New.
5811         (vec_vcmpequh): New.
5812         (vec_vcmpequw): New.
5813         (vec_vcmpeqfp): New.
5814         (vec_vcmpgefp): New.
5815         (vec_vcmpgtub): New.
5816         (vec_vcmpgtsb): New.
5817         (vec_vcmpgtuh): New.
5818         (vec_vcmpgtsh): New.
5819         (vec_vcmpgtuw): New.
5820         (vec_vcmpgtsw): New.
5821         (vec_vcmpgtfp): New.
5822         (vec_vcmpgefp): New.
5823         (vec_vcfux): New.
5824         (vec_vcfsx): New.
5825         (vec_vctsxs): New.
5826         (vec_vctuxs): New.
5827         (vec_vexptefp): New.
5828         (vec_vrfim): New.
5829         (vec_lvx): New.
5830         (vec_lvebx): New.
5831         (vec_lvehx): New.
5832         (vec_lde): Add vector float variant.
5833         (vec_lvewx): New.
5834         (vec_lvxl): New.
5835         (vec_vlogefp): New.
5836         (vec_vmaddfp): New.
5837         (vec_vmhaddshs): New.
5838         (vec_vmaxub): New.
5839         (vec_vmaxsb): New.
5840         (vec_vmaxuh): New.
5841         (vec_vmaxsh): New.
5842         (vec_vmaxuw): New.
5843         (vec_vmaxsw): New.
5844         (vec_vmaxsw): New.
5845         (vec_vmaxfp): New.
5846         (vec_vmrghb): New.
5847         (vec_vmrghh): New.
5848         (vec_vmrghw): New.
5849         (vec_vmrglb): New.
5850         (vec_vmrglh): New.
5851         (vec_vmrglw): New.
5852         (vec_vminub): New.
5853         (vec_vminsb): New.
5854         (vec_vminuh): New.
5855         (vec_vminsh): New.
5856         (vec_vminuw): New.
5857         (vec_vminsw): New.
5858         (vec_vminfp): New.
5859         (vec_vmladduhm): New.
5860         (vec_vmhraddshs): New.
5861         (vec_msumubm): New.
5862         (vec_vmsummbm): New.
5863         (vec_vmsumuhm): New.
5864         (vec_vmsumshm): New.
5865         (vec_vmsumuhs): New.
5866         (vec_vmsumshs): New.
5867         (vec_vmuleub): New.
5868         (vec_vmulesb): New.
5869         (vec_vmuleuh): New.
5870         (vec_vmulesh): New.
5871         (vec_vmuloub): New.
5872         (vec_mulosb): New.
5873         (vec_vmulouh): New.
5874         (vec_vmulosh): New.
5875         (vec_vnmsubfp): New.
5876         (vec_vnor): New.
5877         (vec_vor): New.
5878         (vec_vpkuhum): New.
5879         (vec_vpkuwum): New.
5880         (vec_vpkpx): New.
5881         (vec_vpkuhus): New.
5882         (vec_vpkshss): New.
5883         (vec_vpkuwus): New.
5884         (vec_vpkswss): New.
5885         (vec_vpkshus): New.
5886         (vec_vpkswus): New.
5887         (vec_vperm): New.
5888         (vec_vrefp): New.
5889         (vec_vrlb): New.
5890         (vec_vrlh): New.
5891         (vec_vrlw): New.
5892         (vec_vrfin): New.
5893         (vec_vrsqrtefp): New.
5894         (vec_vsel): New.
5895         (vec_vslb): New.
5896         (vec_vslh): New.
5897         (vec_vslw): New.
5898         (vec_vsldoi): New.
5899         (vec_vsl): New.
5900         (vec_vslo): New.
5901         (vec_vspltb): New.
5902         (vec_vsplth): New.
5903         (vec_vspltw): New.
5904         (vec_vspltisb): New.
5905         (vec_vspltish): New.
5906         (vec_vspltisw): New.
5907         (vec_vsrb): New.
5908         (vec_vsrh): New.
5909         (vec_vsrw): New.
5910         (vec_vsrab): New.
5911         (vec_vsrah): New.
5912         (vec_vsraw): New.
5913         (vec_vsr): New.
5914         (vec_vsro): New.
5915         (vec_stvx): New.
5916         (vec_stvebx): New.
5917         (vec_stvehx): New.
5918         (vec_stvewx): New.
5919         (vec_stvxl): New.
5920         (vec_vsububm): New.
5921         (vec_vsubuhm): New.
5922         (vec_vsubuwm): New.
5923         (vec_vsubfp): New.
5924         (vec_vsubcuw): New.
5925         (vec_vsububs): New.
5926         (vec_vsubsbs): New.
5927         (vec_vsubuhs): New.
5928         (vec_vsubshs): New.
5929         (vec_vsubuws): New.
5930         (vec_vsubsws): New.
5931         (vec_vsum4ubs): New.
5932         (vec_vsum4sbs): New.
5933         (vec_vsum4shs): New.
5934         (vec_vsum2sws): New.
5935         (vec_vsumsws): New.
5936         (vec_vrfiz): New.
5937         (vec_vupkhsb): New.
5938         (vec_vupkhpx): New.
5939         (vec_vupkhsh): New.
5940         (vec_vupklsb): New.
5941         (vec_vupklpx): New.
5942         (vec_vupklsh): New.
5943         (vec_vxor): New.
5944
5945 2002-04-23  Eric Botcazou  <ebotcazou@multimania.com>
5946
5947         PR c/5430
5948         * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
5949         added literals from substracted literals.
5950         (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
5951         (fold) [associate]: Preserve MINUS_EXPR if needed.
5952
5953 2002-04-23  Zack Weinberg  <zack@codesourcery.com>
5954
5955         * doc/install.texi: Clarify which versions of alpha*-dec-osf*
5956         are obsoleted.
5957
5958 2002-04-23  Tom Tromey  <tromey@redhat.com>
5959
5960         * gcc.c: Added --resource.  For PR java/6314.
5961
5962 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
5963
5964         * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
5965         * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
5966         these libraries.
5967
5968 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
5969
5970         * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
5971
5972 Tue Apr 23 14:24:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
5973
5974         * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
5975         workaround.
5976         (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
5977         (ix86_expand_clrstr): Fix typo.
5978         * loop.c (gen_load_of_final_value): New.
5979         (loop_givs_rescan, strength_reduce, check_dbra_loop):
5980         Use it.
5981
5982 2002-04-23  Roger Sayle  <roger@eyesopen.com>
5983
5984         * builtins.c (builtin_memset_gen_str): New function.
5985         (expand_builtin_memset): Optimize the case of constant length, but
5986         unknown value.
5987
5988 2002-04-23  Aldy Hernandez  <aldyh@redhat.com>
5989
5990         * config/rs6000/altivec.h (vec_step): Remove extraneous
5991         parentheses.
5992         (vec_ctu): Cast return.
5993
5994 2002-04-23  Alan Modra  <amodra@bigpond.net.au>
5995
5996         PR target/6413
5997         * function.h: (struct function): Add profile_label_no field.
5998         (current_function_profile_label_no): Define.
5999         * function.c: (profile_label_no): New static var.
6000         (expand_function_start): Increment it, and copy to
6001         current_function_profile_label_no.
6002         * output.h (profile_label_no): Delete.
6003         * final.c (profile_label_no): Delete.
6004         (profile_function): Use current_function_profile_label_no.
6005         (final_end_function): Don't increment profile_label_no here.
6006         * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
6007         profile_label_no with current_function_profile_label_no.
6008         * config/pa/pa.c (current_function_number): Delete.
6009         (pa_output_function_prologue): Don't output profile label here.
6010         (hppa_profile_hook): Use label_no param rather than
6011         current_function_number.
6012         (FUNC_BEGIN_PROLOG_LABEL): Move to ..
6013         * config/pa/pa.h: .. here.
6014         (FUNCTION_PROFILER): Output profile label here.
6015
6016 2002-04-22  Eric Christopher  <echristo@redhat.com>
6017
6018         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
6019         patch of 2002-04-09 due to binutils issues.
6020         (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
6021
6022 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
6023
6024         * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
6025         constraint to 'o' for m=r and r=m alternatives.
6026         ("*movv8hi_internal1"): Same.
6027         ("*movv16qi_internal1"): Same.
6028         ("*movv4sf_internal1"): Same.
6029
6030 2002-04-22  Janis Johnson  <janis187@us.ibm.com>
6031
6032         * rtl.h (RTX_FLAG): New macro.
6033         * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
6034         * final.c (alter_subreg): Use macro to access rtx flag.
6035         * integrate.c (copy_rtx_and_substitute): Use new access macro.
6036         * print-rtl.c (print_rtx): Use new access macro.
6037
6038         * cse.c (insert): Check rtx code before accessing flag.
6039
6040         * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
6041         ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
6042         (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
6043         convert_const_symbol_ref, make_canonical, make_alternative_compare,
6044         evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
6045         simplify_test_exp, optimize_attrs, simplify_by_exploding,
6046         find_and_mark_used_attributes, unmark_used_attributes,
6047         add_values_to_cover, simplify_with_current_value,
6048         simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
6049         copy_rtx_unchanging, main): Use new access macros.
6050
6051 2002-04-22  Tom Rix  <trix@redhat.com>
6052
6053         * expmed.c (init_expmed): Generate shifted constant once.
6054
6055 2002-04-22  Zack Weinberg  <zack@codesourcery.com>
6056
6057         * c-lex.c (lex_charconst): Call convert to get constant in
6058         proper type; don't just smash the type field.
6059         Fixes PR c/6300.
6060
6061         * config.gcc: Add list of obsolete configurations.  Disallow
6062         building these without --enable-obsolete.
6063         * doc/install.texi: Document --enable-obsolete and obsoletion
6064         policy.  Mention obsoletion of individual targets in
6065         appropriate places.
6066
6067 2002-04-22  Richard Henderson  <rth@redhat.com>
6068
6069         * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
6070
6071 2002-04-22  Mark Mitchell  <mark@codesourcery.com>
6072
6073         PR f/6138.
6074         * function.c (fixup_memory_subreg): Add promoted_mode parameter.
6075         (walk_fixup_memory_subreg): Likewise.
6076         (fixup_var_refs_insn): Adjust accordingly.
6077         (fixup_var_refs_1): Likewise.
6078
6079 2002-04-22  Ulrich Weigand  <uweigand@de.ibm.com>
6080
6081         * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
6082         LIBPATH_ARCH64_SPEC): Define.
6083         (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
6084         (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
6085         (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
6086         (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
6087
6088 2002-04-22      Joel Sherrill <joel@OARcorp.com>
6089
6090         * gthr-rtems.h: Correct prototypes to remove warnings.
6091
6092 2002-04-22  Richard Henderson  <rth@redhat.com>
6093
6094         PR c/6344
6095         * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
6096
6097         * gcse.c (free_insn_expr_list_list): New.
6098         (clear_modify_mem_tables): Use it.  Fix bit set usage.
6099         (canon_list_insert): Use EXPR_LISTs for expressions.
6100         (record_last_mem_set_info): Factor BLOCK_NUM (insn).
6101
6102 2002-04-22  Neil Booth  <neil@daikokuya.demon.co.uk>
6103
6104         * cppfiles.c (_cpp_pop_file_buffer): Return void.  Move
6105         file change and include code to _cpp_pop_buffer.
6106         * cpphash.h (struct pending_option): Predeclare.
6107         (struct cpp_reader): New member next_include_file.
6108         (_cpp_pop_file_buffer): Update.
6109         (_cpp_push_next_buffer): Update, rename.
6110         * cppinit.c (cpp_destroy): Free include chain and pending here.
6111         (cpp_finish_options): Simplify.
6112         (_cpp_push_next_buffer): Rename and clean up.
6113         * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
6114         Clarify.
6115         * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
6116
6117 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
6118
6119         * config/rs6000/altivec.h (vec_xor): Add variant for both args
6120         being vector signed int.
6121         (vec_andc): Same.
6122         (vec_xor): Add variant for both args being vector signed char.
6123         Remove redundant variant.
6124         (vec_andc): Same.
6125
6126 2002-04-21  David S. Miller  <davem@redhat.com>
6127
6128         * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
6129         compare mode in output RTL.
6130
6131 2002-04-22  David Edelsohn  <edelsohn@gnu.org>
6132
6133         * config/rs6000/rs6000.c (rs6000_override_options): Correct
6134         style and formatting of previous patch.
6135
6136 2002-04-22  Alan Modra  <amodra@bigpond.net.au>
6137
6138         * config/rs6000/rs6000.c (rs6000_override_options): Always clear
6139         flag_pic for ABI_AIX.
6140
6141 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
6142
6143         * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
6144         * cppfiles.c (read_include_file): Similarly.
6145         * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
6146         uxstrdup ustrchr, ufputs): Similarly.
6147         * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
6148         * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
6149         cpp_ideq, parse_identifier, parse_number): Similarly.
6150         * cpplib.c (struct directive, dequote_string, D, run_directive,
6151         cpp_push_buffer): Similarly.
6152         * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
6153         _cpp_create_definition, check_trad_stringification,
6154         cpp_macro_definition): Similarly.
6155
6156 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
6157
6158         * cppmacro.c (funlike_invocation_p): Don't step back
6159         over CPP_EOF.
6160
6161 2002-04-21  David Edelsohn  <edelsohn@gnu.org>
6162
6163         * config/rs6000/rs6000.c (output_profile_hook): Do not increment
6164         labelno.
6165
6166 2002-04-20  Joseph S. Myers  <jsm28@cam.ac.uk>
6167
6168         * doc/invoke.texi: Remove Chill references.
6169         * doc/gcc.texi: Update last modified date.
6170
6171 2002-04-20  Kazu Hirata  <kazu@hxi.com>
6172
6173         * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
6174         push and pop.  Replace add.l with add.w.
6175
6176 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
6177
6178         * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
6179         multiply instructions for H8/300H case.
6180
6181 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
6182
6183         * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
6184         Bum three instructions from each routine.
6185
6186 2002-04-20  Neil Booth  <neil@daikokuya.demon.co.uk>
6187
6188         * Makefile.in: Update.
6189         * decl.c (push_c_function_context, pop_c_function_context,
6190         mark_c_function_context): Rename for consistency.
6191         * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
6192         * c-tree.h (push_c_function_context, pop_c_function_context,
6193         mark_c_function_context): Rename for consistency.
6194         * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
6195         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
6196         * function.c (init_lang_status, save_lang_status,
6197         restore_lang_status, mark_lang_status, free_lang_status):
6198         Move to langhooks.h.
6199         (push_function_context_to, pop_function_context_from,
6200         free_after_parsing, prepare_function_start, ggc_mark_struct_function):
6201         Update.
6202         * function.h (init_lang_status, save_lang_status,
6203         restore_lang_status, mark_lang_status, free_lang_status):
6204         Move to langhooks.h.
6205         * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
6206         LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
6207         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
6208         LANG_HOOKS_FUNCTION_INITIALIZER): New.
6209         (LANG_HOOKS_INITIALIZER): Update.
6210         (lhd_do_nothing_f): New.
6211         * langhooks.h (struct lang_hooks_for_functions): New.
6212         (struct lang_hooks): New hooks.
6213         * langhooks.c (lhd_do_nothing_f): New.
6214 objc:
6215         * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
6216         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
6217
6218 2002-04-19  David S. Miller  <davem@redhat.com>
6219
6220         * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
6221         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
6222
6223 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
6224
6225         PR optimization/3756
6226         * config/i386/i386.c (ix86_expand_int_movcc): Optimize
6227         x = ((int) y < 0) ? cst1 : cst2.
6228
6229 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
6230
6231         PR c/6358
6232         * function.c: Reapply patch for c/6358.
6233         (expand_function_end): Copy decl_rtl's mode, not
6234         current_function_return_rtx mode.
6235
6236 2002-04-19  Joel Sherrill  <joel@OARcorp.com>
6237
6238         * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
6239         targets.
6240
6241 2002-04-19  Tom Tromey  <tromey@redhat.com>
6242
6243         * doc/install.texi (Specific): Update status of Solaris 2.8.
6244         For PR libgcj/6158.
6245
6246 2002-04-19  Andreas Schwab  <schwab@suse.de>
6247
6248         * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
6249         (PUT_REAL): Restore old definition.
6250
6251 2002-04-19  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
6252             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6253
6254         * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
6255         binutils 2.11.2 and higher generate smaller binaries than Sun's
6256         native tools.
6257
6258 2002-04-19  Mark Mitchell  <mark@codesourcery.com>
6259
6260         PR c++/6352
6261         * toplev.c (rest_of_compilation): Do not defer functions for which
6262         TREE_SYMBOL_REFERENCED has already been set.
6263
6264 Fri Apr 19 15:53:03 CEST 2002  Jan Hubicka  <jh@suse.cz>
6265
6266         * i386.md (movsi_1, movhi_1): Force reload to use more flexible
6267         alternative.
6268
6269 2002-04-19  Neil Booth  <neil@daikokuya.demon.co.uk>
6270
6271         * builtins.c: Include langhooks.h.
6272         (lang_type_promotes_to): Remove.
6273         (expand_builtin_va_arg): Use new hook.
6274         * c-common.c (c_common_nodes_and_builtins): Don't set hook.
6275         (simple_type_promotes_to): Move to c-typeck.c.
6276         * c-common.h (simple_type_promotes_to): Remove.
6277         * c-decl.c (duplicate_decls, grokdeclarator): Update.
6278         * c-format.c: Include langhooks.h.
6279         (check_format_types): Update.
6280         * c-tree.h (c_type_promotes_to): New.
6281         * c-typeck.c (c_type_promotes_to): Move from c-common.c.
6282         (type_lists_compatible_p): Update.
6283         * langhooks-def.h (lhd_type_promotes_to): New.
6284         (LANG_HOOKS_TYPE_PROMOTES_TO): New.
6285         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
6286         * langhooks.c (lhd_type_promotes_to): New.
6287         * langhooks.h (struct lang_hooks_for_types): New hook.
6288         * tree.h (lang_type_promotes_to): Remove.
6289 objc:
6290         * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
6291
6292 2002-04-18  Richard Henderson  <rth@redhat.com>
6293
6294         * function.c: Revert patch for c/6358.
6295
6296 2002-04-18  Richard Henderson  <rth@redhat.com>
6297
6298         * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
6299         blocks.  Handle multiple references to the TRAP block.  Handle
6300         non-adjacent THEN and OTHER blocks.
6301
6302 2002-04-18  Richard Henderson  <rth@redhat.com>
6303
6304         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
6305         crash with no type for by-mode libcalls.
6306
6307         * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
6308
6309 2002-04-18  Bob Wilson  <bob.wilson@acm.org>
6310
6311         * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
6312         __xtensa_nonlocal_goto): Use a syscall instructions to flush
6313         the register windows.
6314
6315 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
6316
6317         * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
6318         appropriate.  Document need for extended precision even when
6319         MAX_LONG_DOUBLE_TYPE_SIZE is smaller.  Define REAL_WIDTH here,
6320         based on REAL_VALUE_TYPE_SIZE.  Use REAL_WIDTH to size
6321         REAL_VALUE_TYPE.  Define CONST_DOUBLE_FORMAT here.  Use #error
6322         instead of relying on later syntax error when REAL_WIDTH > 5.
6323         * real.c: Define NE based only on whether or not we have a
6324         full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
6325         Require sizeof(REAL_VALUE_TYPE) == 2*NE.  Unconditionally
6326         define GET_REAL and PUT_REAL as simple memcpy operations; no
6327         need to byteswap or round.
6328         Use #error instead of #ifdef-ing out the entire file, for
6329         prompt error detection.
6330
6331         * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
6332
6333 2002-04-18  David S. Miller  <davem@redhat.com>
6334
6335         * config/sparc/sparc.h (BRANCH_COST): Define.
6336
6337         * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
6338         does it.
6339
6340 2002-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
6341
6342         * flow.c (update_life_info): Ignore return value of cleanup_cfg.
6343         Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
6344         propagate_block calls after relaxation loop using new variable
6345         stabilized_prop_flags.
6346
6347 2002-04-18  Richard Henderson  <rth@redhat.com>
6348
6349         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
6350         (ia64_va_arg): Expect variable sized types by reference.
6351         * config/ia64/ia64-protos.h: Update.
6352         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
6353         ia64_function_arg_pass_by_reference.
6354
6355 2002-04-18  Richard Henderson  <rth@redhat.com>
6356
6357         * ifcvt.c: Include except.h.
6358         (block_has_only_trap): Break out from find_cond_trap.
6359         (find_cond_trap): Use it.  Always delete the trap block.
6360         (merge_if_block): Allow then block null.  Be less simplistic about
6361         what insns can end a block.
6362         * Makefile.in (ifcvt.o): Depend on except.h.
6363
6364         * config/ia64/ia64.md (trap, conditional_trap): New.
6365
6366 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
6367
6368         PR c/6358
6369         * function.c (assign_parms): Assign hard current_function_return_rtx
6370         register here...
6371         (expand_function_end): ...not here.
6372
6373 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
6374
6375         * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
6376         * c-tree.h (c_incomplete_type_error): New.
6377         * c-typeck.c (require_complete_type, build_component_ref): Update.
6378         (incomplete_type_error): Rename.
6379         * langhooks-def.h (lhd_incomplete_type_error): New.
6380         (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
6381         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
6382         * langhooks.c (lhd_incomplete_type_error): New.
6383         * langhooks.h (struct lang_hooks_for_types): New hook.
6384         * tree.c (size_in_bytes): Use new hook.
6385         * tree.h (incomplete_type_error): Remove.
6386 objc:
6387         * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
6388
6389 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
6390
6391         * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
6392         TARGET_FLOAT_FORMAT blocks.
6393
6394 2002-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6395
6396         * doc/install.texi (Downloading the source): Do not mention Chill
6397         any longer, but mention Ada.
6398         (Configuration): Do not mention Chill any longer.
6399
6400 2002-04-18  Hans-Peter Nilsson  <hp@axis.com>
6401
6402         * config/cris/cris.h (TARGET_VERSION): Remove local version number.
6403
6404 Thu Apr 18 17:14:08 CEST 2002  Jan Hubicka  <jh@suse.cz>
6405
6406         * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
6407         in last patch.
6408
6409 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
6410
6411         * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
6412         instead of unsigned_type.
6413
6414 Thu Apr 18 15:49:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
6415
6416         * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
6417         * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
6418         later.
6419
6420 2002-04-18  Bernd Schmidt  <bernds@redhat.com>
6421
6422         * attribs.c (vector_type_node_list): New static variable.
6423         (handle_vector_size_attribute): Use it to avoid generating a
6424         new type node each time we are called.
6425
6426         * combine.c (subst): Avoid trying to make a vector mode subreg of
6427         an integer constant.
6428         (gen_lowpart_for_combine): Likewise.
6429
6430 2002-04-18  Roger Sayle  <roger@eyesopen.com>
6431             Jakub Jelinek  <jakub@redhat.com>
6432
6433         * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
6434         for integer constant c (if x has unsigned type or sign bit is not
6435         set in c).  This folds the zero/sign extension into the bit-wise and
6436         operation.
6437
6438 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
6439
6440         PR middle-end/6205
6441         * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
6442         otherwise xorps.
6443
6444 2002-04-17  NIIBE Yutaka  <gniibe@m17n.org>
6445
6446         * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
6447
6448 2002-04-17  Nick Clifton  <nickc@cambridge.redhat.com>
6449
6450         * gcc.c (read_specs): Detect and fail if an attempt is made to
6451         rename a spec string to an already existing string.
6452
6453 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
6454
6455         * config/s390/s390.c (legitimize_pic_address): Do not generate
6456         illegal address constant without CONST.
6457
6458 2002-04-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6459
6460         * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
6461         * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
6462
6463 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
6464
6465         PR optimization/6305
6466         * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
6467         to make sure previous reloads are taken into account.  Generate
6468         better code if one operand is an in-range immediate constant.
6469
6470 2002-04-16  Andrew Haley  <aph@cambridge.redhat.com>
6471
6472         * doc/install.texi (Building): libgcj requires GNU make.
6473
6474 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
6475
6476         PR bootstrap/6315
6477         * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
6478         even if hard quad and register is not floating.
6479         (movtf reg<-mem split): Disallow splitting if hard quad and
6480         register is floating.
6481         (movtf mem<-reg split): Likewise.
6482         * config/sparc/sparc.c (fp_register_operand): New predicate.
6483         * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
6484
6485 2002-04-17  Zack Weinberg  <zack@codesourcery.com>
6486
6487         * Makefile.in (PROTO_OBJS): Add cppdefault.o.
6488         (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
6489         (unprotoize.o): Ditto.  Build from protoize.c.  Define
6490         UNPROTOIZE on command line.
6491         * protoize.c: Include cppdefault.h.  Delete include_defaults.
6492         (in_system_include_dir): Use cpp_include_defaults (defined in
6493         cppdefault.o).
6494         * unprotoize.c: Delete file.
6495
6496 2002-04-17  Aldy Hernandez  <aldyh@redhat.com>
6497
6498         * config/rs6000/altivec.h (vec_ld): Add array variants.
6499         (vec_lde): Same.
6500         (vec_ldl): Same.
6501
6502 2002-04-17  Alan Matsuoka  <alanm@redhat.com>
6503             Aldy Hernandez <aldyh@redhat.com>
6504
6505         * config/rs6000/altivec.h: Define __ALTIVEC__.
6506         (bool): New.
6507         (__pixel): New.
6508         (pixel): New.
6509         (vec_cfux): New.
6510         (vec_vmaddfp): New.
6511         (vec_vsldoi): New.
6512         Add parentheses to all macro arguments.
6513
6514 2002-04-16  Richard Henderson  <rth@redhat.com>
6515
6516         PR c++/6320
6517         * except.c (remove_eh_handler): Insert inner regions at beginning
6518         of sibling chain.  Refactor expressions.
6519
6520 2002-04-16  Richard Henderson  <rth@redhat.com>
6521
6522         * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
6523         * config/sparc/sol2-gas-bi.h: New file.
6524         * config.gcc (sparc*-solaris): Add it as needed.
6525         * configure.in (AS_SPARC64_FLAG): Remove check.
6526         * config.in, configure: Regenerate.
6527
6528         * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
6529
6530 2002-04-16  Richard Henderson  <rth@redhat.com>
6531
6532         * config/mips/mips.c (override_options): Don't override N32 for
6533         a 64-bit ISA.
6534
6535         PR 6202
6536         * config/mips/mips.md (can_delay): Split out of existing define_delays.
6537         (HILO_delay): Set can_delay false.
6538
6539 2002-04-16  Dale Johannesen <dalej@apple.com>
6540
6541         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
6542         instruction addresses.
6543         (rs6000_output_function_epilogue): Likewise.
6544
6545 2002-04-16  Paolo Carlini  <pcarlini@unitus.it>
6546
6547         * c-parse.in (poplevel, compstmt_start,
6548         compstmt_primary_start): Add ending ';', in accordance
6549         with POSIX.
6550
6551 2002-04-16  Richard Henderson  <rth@redhat.com>
6552
6553         * config.gcc (sparcv9-solaris): Configure for 64-bit default.
6554         Adjust tm_file order to get TARGET_DEFAULT set properly.
6555         (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
6556         * doc/install.texi (sparc-solaris): Update.
6557
6558 2002-04-16  Dale Johannesen <dalej@apple.com>
6559
6560         * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
6561         comparison operands do not match each other or if modes of
6562         conditions do not match result.
6563
6564 2002-04-16  Hartmut Penner <hpenner@de.ibm.com>
6565
6566         PR target/6305
6567         * config/s390/s390.md (mulsidi3): Set both subregs of the
6568         multiword register.
6569
6570 2002-04-16  Aldy Hernandez  <aldyh@redhat.com>
6571
6572         * config/rs6000/altivec.h (vec_addc): Type check.
6573
6574 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
6575
6576         PR middle-end/6279
6577         * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
6578
6579         * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
6580
6581 2002-04-15  Richard Henderson  <rth@redhat.com>
6582
6583         * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
6584         call_really_used_regs too.
6585
6586 2002-04-15  Richard Henderson  <rth@redhat.com>
6587
6588         * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
6589
6590 2002-04-15  David S. Miller  <davem@redhat.com>
6591
6592         * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
6593         as being CLOBBERed.
6594
6595 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
6596
6597         PR c/6290
6598         * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
6599         CONST_VECTOR is { 0, ... 0 }.
6600
6601 2002-04-15  Loren J. Rittle  <ljrittle@acm.org>
6602
6603         * doc/install.texi (Installing GCC: Configuration): Clarify
6604         the only supported ways to configure gcc.
6605
6606 2002-04-15  Roland McGrath  <roland@frob.com>
6607
6608         * config.gcc (alpha*-*-gnu*): New target configuration.
6609         * config/alpha/gnu.h: New file for it.
6610         * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
6611
6612 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
6613
6614         * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
6615         * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
6616         * tree.h (expand_start_stmt_expr): Update prototype.
6617         * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
6618         * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
6619         on the STMT_EXPR created for the inline function.
6620
6621 2002-04-15  Richard Henderson  <rth@redhat.com>
6622
6623         * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
6624         config/i386/linux-aout.h, config/i386/linux-oldld.h,
6625         config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
6626         config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
6627         config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
6628         config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
6629         config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
6630         Define __gnu_linux__, not gnu_linux.
6631         * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
6632
6633 2002-04-15  Mark Mitchell  <mark@codesourcery.com>
6634
6635         Remove Chill front end.
6636         * gcc.c (default_compilers): Remove Chill entries.
6637         * ch: Remove directory.
6638         * doc/frontends.texi: Remove information about Chill.
6639         * doc/sourcebuild.texi: Likewise.
6640         * doc/standards.texi: Likewise.
6641
6642 2002-04-15  Douglas B Rupp  <rupp@gnat.com>
6643
6644         * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
6645         (LONGLONG_STANDALONE): Define.
6646
6647 2002-04-15  David S. Miller  <davem@redhat.com>
6648
6649         * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
6650         Call emit_library_call with LCT_NORMAL.
6651         (sparc_initialize_trampoline): Use LCT_foo instead of
6652         magic constant in emit_library_call invocations.
6653         (sparc64_initialize_trampoline): Likewise.
6654         (sparc_profile_hook): Likewise.
6655         * config/sparc/sparc.md: Likewise.
6656
6657         * config/sparc/sparc.c (sparc_extra_constraint_check):
6658         Fix type of argument 'c'.
6659         * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
6660         Likewise.
6661
6662 2002-04-15  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
6663
6664         * diagnostic.h (output_buffer_state): Redefine.
6665         (output_format_decoder): New macro.
6666         (output_prefixing_rule): Likewise.
6667         (output_line_cutoff): Likewise.
6668         (diagnostic_format_decoder): Adjust.
6669         (diagnostic_prefixing_rule): Likewise.
6670         (diagnostic_line_cutoff): Likewise.
6671         (diagnostic_state): Likewise.
6672         (diagnostic_kind_count): Likewise.
6673         (diagnostic_buffer): Now a macro.
6674
6675         * diagnostic.c (diagnostic_buffer): Remove definition.
6676         (output_is_line_wrapping): Adjust.
6677         (set_real_maximum_length): Likewise.
6678         (output_set_maximum_length): Likewise.
6679         (init_output_buffer): Likewise.
6680         (lhd_print_error_function): Likewise.
6681         (output_do_verbatim): Likewise.
6682
6683 2002-04-14  Neil Booth  <neil@daikokuya.demon.co.uk>
6684
6685         * cpperror.c (print_location): Don't print include chain
6686         if line == 0.
6687         (cpp_begin_message): Update to use DL_ macros.
6688         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
6689         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
6690         cpp_notice, cpp_notice_from_errno): Remove.
6691         (cpp_error, cpp_error_with_line): Update to take a diagnostic
6692         level.
6693         (cpp_errno): New.
6694         * cppexp.c (CPP_ICE): Remove.
6695         (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
6696         lex, integer_overflow, _cpp_parse_expr): Update.
6697         * cppfiles.c (read_include_file, find_include_file,
6698         handle_missing_header, _cpp_read_file, remap_filename): Update.
6699         * cpphash.h (enum error_type): Remove.
6700         (_cpp_begin_message): Update.
6701         * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
6702         cpp_handle_option, cpp_post_options): Update.
6703         * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
6704         skip_whitespace, parse_identifier, parse_slow, parse_string,
6705         _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
6706         cpp_interpret_charconst): Update.
6707         * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
6708         lex_macro_node, do_undef, glue_header_name, parse_include,
6709         do_include_common, read_flag, do_line, do_linemarker, do_ident,
6710         cpp_register_pragma, do_pragma_once, do_pragma_system_header,
6711         do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
6712         do_elif, do_endif, parse_answer, parse_assertion, do_assert,
6713         _cpp_pop_buffer, do_diagnostic): Update.
6714         * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
6715         DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
6716         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
6717         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
6718         cpp_notice, cpp_notice_from_errno): Remove.
6719         (cpp_error, cpp_error_with_line): Update to take a diagnostic
6720         level.
6721         (cpp_errno): New.
6722         * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
6723         collect_args, enter_macro_context, save_parameter, parse_params,
6724         _cpp_create_definition, check_trad_stringification,
6725         cpp_macro_definition): Update.
6726         * cppmain.c (cpp_preprocess_file): Update.
6727         * fix-header.c (read_scan_file): Update.
6728
6729 2002-04-14  Andreas Schwab  <schwab@suse.de>
6730
6731         * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
6732
6733 2002-04-14  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
6734
6735         * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
6736
6737 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
6738
6739         * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
6740         not gnu_hurd.
6741
6742 2002-04-13  Hans-Peter Nilsson  <hp@axis.com>
6743
6744         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
6745
6746 2002-04-13      Joel Sherrill <joel@OARcorp.com>
6747
6748         * config/sparc/t-elf: Enable v8 multilibs.  Impacts
6749         sparc-elf and sparc-rtems targets.
6750
6751 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
6752
6753         * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
6754         defined, and __gnu_hurd__ wherever __GNU__ is defined.
6755         * arm/linux-elf.h: Likewise.
6756         * cris/aout.h: Likewise.
6757         * cris/linux.h: Likewise.
6758         * i370/linux.h: Likewise.
6759         * i386/gnu.h: Likewise.
6760         * i386/linux-aout.h: Likewise.
6761         * i386/linux-oldld.h: Likewise.
6762         * i386/linux.h: Likewise.
6763         * i386/linux64.h: Likewise.
6764         * ia64/linux.h: Likewise.
6765         * m68k/linux-aout.h: Likewise.
6766         * m68k/linux.h: Likewise.
6767         * mips/linux.h: Likewise.
6768         * pa/pa-linux.h: Likewise.
6769         * pj/linux.h: Likewise.
6770         * rs6000/sysv4.h: Likewise.
6771         * s390/linux.h: Likewise.
6772         * sh/linux.h: Likewise.
6773         * sparc/linux-aout.h: Likewise.
6774         * sparc/linux.h: Likewise.
6775         * sparc/linux64.h: Likewise.
6776         * xtensa/linux.h: Likewise.
6777
6778 2002-04-13  Richard Sandiford  <rsandifo@redhat.com>
6779
6780         * stmt.c (check_unique_operand_names): Expect operand names to
6781         be strings rather than identifiers.  Use simple_cst_equal to
6782         compare them.
6783         (resolve_operand_name_1): Make same identifier to string change here.
6784         * c-parse.in (asm_operand): Convert a named operand into a string.
6785         * cp/parse.y (asm_operand): Likewise.
6786
6787 2002-04-13  Andreas Schwab  <schwab@suse.de>
6788
6789         * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
6790
6791 2002-04-12  Mark Mitchell  <mark@codesourcery.com>
6792
6793         Revert these changes:
6794
6795         2002-04-06  Mark Mitchell  <mark@codesourcery.com>
6796
6797         PR c++/5571
6798         * stor-layout.c (layout_decl): Reset the RTL for the decl.
6799
6800 2002-04-12  Richard Henderson  <rth@redhat.com>
6801
6802         * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
6803         (sparc*-*-solaris): Clean up header files.
6804         * configure.in (AS_SPARC64_FLAG): Error out if can't find it
6805         and plan on generating 64-bit code.
6806         * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
6807         * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
6808         * config/sparc/sol2-sld-64.h: Rename ...
6809         * config/sparc/sol2-bi.h: ... here.  Remove the bits that checked
6810         for AS_SPARC64_FLAG not defined.
6811         * config/sparc/sol2-gld-bi.h: New.
6812         * config/sparc/sol2-sld.h: Remove.
6813         * config/sparc/sol26-sld.h: New.
6814         * config/sparc/sol2.h: Tidy comments.
6815         * doc/install.texi: Document sparc-solaris configury changes.
6816
6817 2002-04-12  Richard Henderson  <rth@redhat.com>
6818
6819         * recog.c (offsettable_address_p): Match the logic in adjust_address.
6820
6821         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
6822         in 64-bit mode only.  Use only for 32-bit or MEDLOW.
6823
6824 2002-04-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6825
6826         * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
6827
6828 Fri Apr 12 15:42:59 2002  Jeffrey A Law  (law@redhat.com)
6829
6830         * pa.c (pa_can_combine_p): Call extract_insn before calling
6831         constrain_operands.
6832
6833 2002-04-12  Douglas B Rupp  <rupp@gnat.com>
6834
6835         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
6836         (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
6837         (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
6838         (CPP_PREDEFINES): Handle __declspec.
6839         * config/i386/t-interix (USER_H): Remove.
6840
6841 2002-04-12  DJ Delorie  <dj@redhat.com>
6842
6843         * integrate.c (compare_blocks): Make comparisons safe for when
6844         sizeof(int) < sizeof(char *).
6845         (find_block): Likewise.
6846
6847 2002-04-12  Jan Hubicka  <jh@suse.cz>
6848             David Edelsohn  <edelsohn@gnu.org>
6849
6850         * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
6851         registers.
6852         (symbol_ref_operand): New.
6853         * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
6854         * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
6855
6856 2002-04-12  Andreas Schwab  <schwab@suse.de>
6857
6858         * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
6859         * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
6860         overrides the definition in config/svr4.h.
6861
6862 2002-04-12      Eric Norum <eric.norum@usask.ca>
6863
6864         * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
6865         config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
6866         config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
6867         config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
6868         config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
6869         config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
6870         config/v850/rtems.h (*-rtems*): Cleanup pass to move common
6871         definitions to config/rtems.h and make the targets more similar.
6872
6873 Fri Apr 12 08:06:54 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6874
6875         * expr.c (expand_assigment): Remove duplicate conversions #ifdef
6876         POINTERS_EXTEND_UNSIGNED.
6877         (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
6878         (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
6879
6880         * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
6881         not specified.
6882
6883 Fri Apr 12 12:11:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
6884
6885         * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
6886         depends on TARGET_SHMEDIA, not TARGET_SH5.
6887
6888 2002-04-12  Hans-Peter Nilsson  <hp@bitrange.com>
6889
6890         * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
6891         For paradoxical (subreg VAR), replace VAR, don't try the subreg.
6892
6893 Fri Apr 12 10:51:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
6894
6895         * sh.c (broken_move): Constant 0. / 1. load is OK if there is
6896         no r0 clobber.
6897
6898 2002-04-12  Andreas Schwab  <schwab@suse.de>
6899
6900         * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
6901
6902 2002-04-12  Richard Henderson  <rth@redhat.com>
6903
6904         PR bootstrap/4191
6905         * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
6906
6907         * flow.c (mark_used_reg): Manage reg_cond_dead properly for
6908         modes spanning multiple hard regs.
6909
6910         * recog.c (peephole2_optimize): Rebuild jump labels as needed.
6911
6912 2002-04-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6913
6914         * pa.c (pa_output_function_prologue): Don't accumulate the total
6915         number of code bytes when using TARGET_64BIT, or gas, SOM and not
6916         the portable runtime.
6917         (output_deferred_plabels): Handle 64bit plabels.
6918         (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
6919         generating pic code using the GAS assembler for object formats that
6920         are not SOM (ie., ELF32 and ELF64).
6921         (output_millicode_call): Check attribute type if attribute length is 28.
6922         Likewise use $PIC_pcrel$0.  Only call get_attr_length and
6923         dbr_sequence_length once.
6924         (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
6925         dbr_sequence_length once.
6926         * pa.h (TARGET_SOM): Define if not defined.
6927         * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
6928         with GAS and not SOM.
6929         (jump, call_internal_reg, call_value_internal_reg): Likewise.
6930         * som.h (OBJ_SOM): Rename to TARGET_SOM.  Undefine before defining.
6931
6932 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
6933
6934         * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
6935         (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
6936         (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
6937         DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
6938         elfos.h and dbxelf.h values are fine now.
6939         * config/i386/freebsd.h, config/alpha/freebsd.h
6940         (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
6941
6942 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
6943
6944         * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
6945         or set Acpu or Amachine.  Reformat.
6946         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
6947         define.
6948         (LINK_SPEC): Do not need to undef.
6949         * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
6950         * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
6951         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
6952         define.
6953         * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
6954         (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
6955         (LINK_SPEC): Do not need to undef.
6956         (DONT_USE_BUILTIN_SETJMP): Do not define.
6957         * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
6958         (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine.  Remove -Dia64.
6959         (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
6960         Remove trailing spaces.
6961         * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
6962         __ELF__, or set Acpu or Amachine.  Reformat.
6963         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
6964         define.
6965
6966 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
6967
6968         * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
6969         all other *-*-freebsd* targets.
6970
6971 2002-04-11  Richard Henderson  <rth@redhat.com>
6972
6973         * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
6974
6975 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
6976
6977         * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
6978         Include {cpu}/{cpu}.h thru tm_file.
6979         (alpha*-*-linux*ecoff): Remove target.
6980         * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
6981         (LINK_SPEC): Remove, is not OS independent.
6982         * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
6983         (LINK_SPEC): Do not need to #undef any longer.
6984         * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
6985         any longer.
6986         * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
6987         __ELF__.
6988         (LINK_SPEC): Moved here from alpha/elf.h.
6989         * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
6990         SUB_CPP_PREDEFINES.
6991         * config/alpha/linux-ecoff.h: Remove.
6992         * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
6993         (CPP_SPEC): Define _POSIX_SOURCE as needed.
6994         (CPP_SUBTARGET_SPEC): Do not define.
6995         (LINK_SPEC): Do not need to #undef any longer.
6996         * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
6997         * config/alpha/vms.h: Likewise.
6998
6999 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
7000
7001         * doc/extend.texi: Remove old claim that typedefs cannot have
7002         an alignment attribute.
7003
7004 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
7005
7006         PR optimization/6177
7007         * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
7008         bitpos is 0 and bitsize CONCAT size.
7009
7010 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
7011
7012         PR c/6223
7013         * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
7014
7015 2002-04-10  David O'Brien  <obrien@FreeBSD.org>
7016
7017         * config/alpha/freebsd.h: Minor reformatting.
7018         (CPP_SPEC): Define ELF and add cpp_subtarget.
7019         (ASM_SPEC): No longer needed.
7020
7021 2002-04-11  Richard Henderson  <rth@redhat.com>
7022
7023         * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
7024         (movdi_insn_sp32_v9): Likewise.  Only allow stx with aligned memory.
7025         (dimode mem/zero splitter): New.
7026
7027 2002-04-11  Hans-Peter Nilsson  <hp@axis.com>
7028
7029         * config/cris/cris.c (cris_override_options): Tweak error message
7030         for PIC not implemented.
7031
7032         * config/cris/cris.h: Tweak comments related to parameter-passing.
7033
7034         * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
7035
7036 2002-04-10  Richard Henderson  <rth@redhat.com>
7037
7038         * except.c (add_ehl_entry): Allow duplicates after landing pad
7039         creation.
7040
7041 2002-04-10  David Edelsohn  <edelsohn@gnu.org>
7042
7043         * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
7044
7045 2002-04-10  Toon Moene  <toon@moene.indiv.nluug.nl>
7046
7047         * c-decl.c (c_init_decl_processing): Move generation of
7048         decls for g77_integer_type_node and friends from here ...
7049         * c-common.c (c_common_nodes_and_builtins): ... to here.
7050
7051 2002-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
7052
7053         * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
7054         is only used as frame pointer when frame_pointer_needed is true.
7055
7056 2002-04-10  Richard Earnshaw  <rearnsha@arm.com>
7057
7058         PR target/817
7059         * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
7060         for the fact that the pool entry uses two words.
7061         (movdf_hard_insn): Similarly.  Also, ADR instruction can span
7062         1k bytes.
7063         (movdf_soft_insn): Similarly.
7064         (movxf_hard_insn): Adjust neg_pool_range attribute to allow
7065         for the fact that the pool entry uses three words.
7066
7067 2002-04-10  Richard Sandiford  <rsandifo@redhat.com>
7068
7069         * config/mips/mips.c (mips_va_arg): When using the struct version
7070         of the EABI va_list, allow arguments in the register save area to
7071         take up less room than a stack argument.
7072
7073 2002-04-10  Richard Henderson  <rth@redhat.com>
7074
7075         * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
7076         if EXPAND_INITIALIZER.
7077
7078 2002-04-09  Richard Henderson  <rth@redhat.com>
7079
7080         * config/alpha/alpha.md (movdi_er_maybe_g): New.
7081         * config/alpha/alpha.c (alpha_expand_mov): Use it.
7082
7083 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
7084
7085         PR optimization/6233
7086         * rtlanal.c (pure_call_p): New function.
7087         * rtl.h (pure_call_p): Declare.
7088         * loop.c (prescan_loop): Use it to set has_nonconst_call.
7089         * gcse.c (store_killed_in_insn): Use pure_call_p here too.
7090
7091 2002-04-09  Eric Christopher  <echristo@redhat.com>
7092
7093         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
7094         information to .comm directive.
7095
7096 2002-04-09  Richard Henderson  <rth@redhat.com>
7097
7098         PR c/5078
7099         * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
7100
7101 2002-04-09  Richard Henderson  <rth@redhat.com>
7102
7103         * basic-block.h (flow_delete_block_noexpunge): Declare.
7104         (expunge_block_nocompact): Declare.
7105         * cfg.c (expunge_block_nocompact): Split out from ...
7106         (expunge_block): ... here.
7107         * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
7108         (flow_delete_block_noexpunge): Split out from ...
7109         (flow_delete_block): ... here.
7110         * cfgcleanup.c (delete_unreachable_blocks): Compact while
7111         removing dead blocks.
7112         * except.c (exception_handler_labels): Remove.
7113         (exception_handler_label_map): New.
7114         (struct eh_region): Add aka member.
7115         (mark_ehl_map_entry, mark_ehl_map, free_region): New.
7116         (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
7117         (for_each_eh_label, for_each_eh_label_1): New.
7118         (init_eh): Register exception_handler_label_map.
7119         (free_eh_status): Use free_region.
7120         (find_exception_handler_labels): Use the map, not the list.
7121         (remove_exception_handler_label): Likewise.
7122         (maybe_remove_eh_handler): Likewise.
7123         (remove_eh_handler): Use the region aka bitmap.
7124         * except.h (exception_handler_labels): Remove.
7125         (for_each_eh_label): Declare.
7126         * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
7127         * loop.c (invalidate_loops_containing_label): New.
7128         (find_and_verify_loops): Use it.  Use for_each_eh_label.
7129         * sched-rgn.c (is_cfg_nonregular): Use
7130         current_function_has_exception_handlers.
7131
7132 2002-04-09  Richard Henderson  <rth@redhat.com>
7133
7134         * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
7135         sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
7136         Do not return changed status.
7137         (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
7138         sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
7139         New functions that do return changed status.
7140         * sbitmap.h: Update decls.
7141         * gcse.c, lcm.c: Use _cg functions as needed.
7142
7143 Tue Apr  9 19:15:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
7144
7145         * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
7146         (sh64-*-elf*, sh-*-rtemself*): Likewise.
7147         * config/sh/embed_bb.c: New file.
7148         * config/sh/embed-elf.h: New file.
7149         * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
7150         if -m[12345]* option is given.  Don't use subtarget_cpp_ptr_spec.
7151         (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
7152         __PTRDIFF_TYPE__ .
7153         (SUBTARGET_CPP_PTR_SPEC): Don't define.
7154         (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
7155         Add subtarget_asm_endian_spec.
7156         (ASM_SPEC): Use subtarget_asm_endian_spec.
7157         (SUBTARGET_ASM_ENDIAN_SPEC): Define.
7158         (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
7159         (WCHAR_UNSIGNED): Define.
7160         (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
7161         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
7162         (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
7163         Fix value.
7164         * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
7165         (sh_adjust_cost): Likewise.
7166         sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
7167         __PTRDIFF_TYPE__ .
7168         (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
7169         (WCHAR_TYPE_SIZE): Likewise.
7170         (ASM_SPEC): Use subtarget_asm_endian_spec.
7171         (SH_ELF_WCHAR_TYPE): #undef/ #define.
7172         (MAX_WCHAR_TYPE_SIZE): Don't #undef.
7173         * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
7174         (MAX_WCHAR_TYPE_SIZE): Don't #define .
7175         (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
7176         (USER_LABEL_PREFIX): Don't #undef /#define .
7177         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
7178         * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
7179         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
7180         (ASM_SPEC): Likewise.
7181         (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
7182         (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
7183         * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
7184         (LIB2FUNCS_EXTRA): Define.
7185         * t-sh64 (LIB2FUNCS_EXTRA): Define.
7186         * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
7187         (LIB1ASMFUNCS_CACHE): Define.
7188         (LIB2FUNCS_EXTRA): Redefine empty.
7189
7190 2002-04-08  Richard Henderson  <rth@redhat.com>
7191
7192         * reorg.c (get_branch_condition): Use reversed_comparison_code.
7193
7194 2002-04-09  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7195
7196         * config/m68hc11/larith.asm (__map_data_section): Fix condition
7197         and optimize for size.
7198         (__do_global_ctors): Fix pointer comparison.
7199         (__do_global_dtors): Likewise.
7200
7201 2002-04-09  David S. Miller  <davem@redhat.com>
7202
7203         * config/sparc/sparc.c (sparc_extra_constraint_check): New
7204         function, implementing EXTRA_CONSTRAINTS.  For memory constraints,
7205         allow reloading pseudos.
7206         * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
7207         * config/sparc/sparc-protos.h: Declare it.
7208
7209         * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
7210         unsigned comparison warning.
7211         (output_restore_regs): Mark leaf_function as unused.
7212
7213 Tue Apr  9 09:35:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7214
7215         * expr.c (is_aligning_offset): New function.
7216         (expand_expr, case COMPONENT_EXPR): Call it.
7217
7218 2002-04-08  David S. Miller  <davem@redhat.com>
7219
7220         PR target/6082
7221         * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
7222
7223         Make init_priority work on Sparc when using GNU ld.
7224         * config/sparc/linux.h, config/sparc/linux64.h,
7225         config/sparc/netbsd-elf.h, config/sparc/freebsd.h
7226         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
7227         * config/sparc/sol2-gld.h: New file to do the same.
7228         * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
7229         sparc/sol2-gld.h to tm_file.
7230
7231         PR optimization/4328
7232         * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
7233         * doc/md.texi: Document it.
7234         * config/sparc/sparc.md (movdi_insn_sp64_novis,
7235         movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
7236         movdf_insn_v9only_vis, movdf_insn_sp64_novis,
7237         movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
7238         * config/sparc/sparc.c (mem_min_alignment): Fix comment.
7239
7240 2002-04-08  Andreas Jaeger  <aj@suse.de>
7241
7242         * stmt.c (expand_asm_operands): Revert last patch from Richard
7243         Henderson.
7244
7245 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7246
7247         * doc/contrib.texi (Contributors): Add John David Anglin and Loren
7248         J. Rittle (the latter also to Testers).  Update David O'Brien's entry.
7249
7250 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7251
7252         * doc/contrib.texi (Contributors): Add David O'Brien.
7253
7254 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
7255
7256         * configure.in (auto-build.h): Use target_alias and build_alias
7257         when running configure.
7258         (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
7259         (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
7260         * configure: Regenerate.
7261
7262 2002-04-07  David S. Miller  <davem@redhat.com>
7263
7264         * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
7265
7266 2002-04-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7267
7268         PR 5933
7269         * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
7270         generating 32-bit pic code.
7271
7272 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
7273
7274         * cppinit.c (cpp_create_reader): Initialize
7275         discard_comments_in_macro_exp.
7276         (COMMAND_LINE_OPTIONS): Add "-CC" option.
7277         (cpp_handle_option): Handle "-CC" option.
7278         * cpplex.c (save_comment): If saving a C++ comment in
7279         a directive, convert it to a C comment.
7280         (_cpp_lex_direct): Pass second comment start character to
7281         save_comment to indicate comment type.
7282         * cpplib.c (_cpp_handle_directive): If processing
7283         a "#define" directive and discard_comments_in_macro_exp
7284         is false,  re-enable saving of comments.
7285         (lex_macro_node): If discard_comments_in_macro_exp is false,
7286         discard any comments before the macro identifier.
7287         * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
7288         member.
7289         * cppmacro.c (cpp_get_token): If expanding a macro while
7290         processing a directive, discard any comments we might encounter.
7291         (parse_params): If discard_comments_in_macro_exp is false,
7292         ignore comments in the macro parameter list.
7293         * gcc.c (cpp_unique_options): Add "-CC" option.
7294         (option_map): Map "--comments-in-macros" to "-CC".
7295         * doc/cppopts.texi: Document "-CC" option.
7296         * f/lang-specs.h: Add "-CC" option.
7297         * testsuite/gcc.dg/cpp/maccom1.c: New test.
7298         * testsuite/gcc.dg/cpp/maccom2.c: New test.
7299         * testsuite/gcc.dg/cpp/maccom3.c: New test.
7300         * testsuite/gcc.dg/cpp/maccom4.c: New test.
7301         * testsuite/gcc.dg/cpp/maccom5.c: New test.
7302         * testsuite/gcc.dg/cpp/maccom6.c: New test.
7303
7304 2002-04-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7305
7306         PR middle-end/6180
7307         * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
7308
7309 2002-04-06  Mark Mitchell  <mark@codesourcery.com>
7310
7311         PR c++/5571
7312         * stor-layout.c (layout_decl): Reset the RTL for the decl.
7313
7314         PR opt/5120
7315         * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
7316         RTX_UNCHANGING_P for the functions arguments when a tail call
7317         is made.
7318
7319 2002-04-06  Jason Merrill  <jason@redhat.com>
7320
7321         * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
7322         (parse_options_and_default_flags): Set them appropriately.
7323         * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
7324
7325 2002-04-06  Hans-Peter Nilsson  <hp@bitrange.com>
7326
7327         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
7328         here.
7329
7330         * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
7331         semicolon.
7332
7333         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
7334         types come in by-reference.  Fix typo in comment.
7335
7336 2002-04-05  David S. Miller  <davem@redhat.com>
7337
7338         * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
7339         * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
7340         sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
7341         {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
7342
7343 2002-04-05  David S. Miller  <davem@redhat.com>
7344
7345         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
7346         are not going to emit return instructions, emit at least a nop
7347         for the sake of sane backtraces.
7348
7349 2002-04-05  Richard Henderson  <rth@redhat.com>
7350
7351         * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
7352
7353 2002-04-05  Jakub Jeilnek  <jakub@redhat.com>
7354
7355         * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
7356
7357 2002-04-05  Alexandre Oliva  <aoliva@redhat.com>
7358
7359         * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
7360         ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
7361         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
7362
7363 2002-04-05  Andreas Schwab  <schwab@suse.de>
7364
7365         * c-convert.c: Include c-common.h.
7366         * Makefile.in (c-convert.o): Updated.
7367
7368 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
7369
7370         * mklibgcc.in: Use separate libgcc.map for each multilib.
7371         * Makefile.in (distclean): Don't remove libgcc.map here.
7372
7373 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
7374
7375         * Makefile.in (s-mlib): Handle --disable-multilib by separate
7376         genmultilib invocation.
7377
7378 2002-04-04  Richard Sandiford  <rsandifo@redhat.com>
7379
7380         * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
7381         to avoid clash with Irix header file sys/ucontext.h.  Rename gp_regs
7382         to num_gprs for symmetry.
7383         * config/mips/mips.c: Adjust accordingly.
7384
7385 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
7386
7387         * c-common.c (truthvalue_conversion): Rename, update.
7388         * c-common.h (c_common_truthvalue_conversion): New.
7389         * c-convert.c (convert): Update.
7390         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
7391         * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
7392         * c-typeck.c (build_binary_op, build_unary_op,
7393         build_conditional_expr): Update.
7394         * fold-const.c (constant_boolean_node, fold): Use langhook.
7395         * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
7396         * langhooks.h (struct lang_hooks): New hook.
7397         * stmt.c (expand_decl_cleanup): Use langhook.
7398         * tree.h (truthvalue_conversion): Remove.
7399 objc:
7400         * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
7401
7402 2002-04-05  Alan Modra  <amodra@bigpond.net.au>
7403
7404         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
7405         Add rules to make null object file.
7406
7407 2002-04-04  Jim Blandy  <jimb@redhat.com>
7408
7409         * cppmacro.c (cpp_macro_definition): Do not emit spaces after
7410         macro formal parameter names.
7411
7412 2002-04-04  David S. Miller  <davem@redhat.com>
7413
7414         * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
7415
7416 2002-04-04  Richard Henderson  <rth@redhat.com>
7417
7418         PR middle-end/5099
7419         * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
7420         Support copies into and out of memory.  Don't accept allows_reg
7421         and allows_mem as gospel.
7422
7423 2002-04-04  Richard Henderson  <rth@redhat.com>
7424
7425         PR opt/6165
7426         * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
7427         (write_dependence_p): Likewise.
7428
7429 2002-04-04  Richard Henderson  <rth@redhat.com>
7430
7431         * predict.c (estimate_bb_frequencies): Do frequency calculation
7432         with a volatile temporary.
7433
7434 2002-04-04  Ulrich Weigand  <uweigand@de.ibm.com>
7435
7436         * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
7437
7438 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
7439
7440         PR c++/6119
7441         * final.c (final_start_function): Don't bump profile_label_no here...
7442         (final_end_function): ...but here.
7443
7444 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
7445
7446         * config/sparc/sparc.md (pic): New attribute.
7447         (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
7448         into stack slots.
7449         (split after do_builtin_setjmp_setup): New.
7450
7451 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
7452
7453         PR fortran/6106
7454         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
7455         change.
7456
7457 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
7458
7459         * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
7460         UNITS_PER_WORD for zero sized aggregates.
7461
7462 2002-04-03  David S. Miller  <davem@redhat.com>
7463
7464         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
7465         one-character spec for this, just use %(link_gcc_c_sequence).
7466
7467 2002-04-03  David S. Miller  <davem@redhat.com>
7468
7469         * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
7470         handling.
7471
7472 2002-04-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7473
7474         * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
7475         (DWARF_FRAME_RETURN_COLUMN): Move.
7476         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
7477         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
7478         * pa.c (except.h, predict.h): Include.
7479         (FRP): Delete.
7480         (store_reg_modify, set_reg_plus_d): Revise prototypes.
7481         (output_ascii): Add cast.
7482         (store_reg_modify): Revise to add frame notes.
7483         (set_reg_plus_d): Likewise.
7484         (compute_frame_size): Include space for eh data registers in frame if
7485         the current function calls eh_return.
7486         (hppa_expand_prologue):  Ensure register %r2 is saved if the current
7487         function calls eh_return.  Save eh data registers if the current
7488         function calls eh_return.  Fix code to add frame notes.  Emit
7489         blockage to prevent insns with frame notes being scheduled in the
7490         delay slot of calls.
7491         (hppa_expand_epilogue): Restore eh data registers and do final stack
7492         adjustment if the current function calls eh_return.  Don't add frame
7493         notes.
7494         (output_call): Revise for change in length of call insn.  Don't do
7495         return pointer adjustment for an unconditional jump in the delay slot
7496         of a call when using frame notes.
7497         * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
7498         (EH_RETURN_HANDLER_RTX): Use saved value on stack.
7499         (ARG_POINTER_CFA_OFFSET): Define.
7500         * pa.md (return_external_pic): New pattern.
7501         (prologue): Correct formatting.  Use return_external_pic if current
7502         function calls eh_return.
7503         (call_internal_symref, call_value_internal_symref,
7504         sibcall_internal_symref, sibcall_value_internal_symref): Change default
7505         lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
7506         respectively.
7507         (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
7508
7509         * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
7510         list of targets to check using "nop" insn.
7511         * configure: Rebuilt.
7512
7513 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
7514
7515         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
7516
7517 2002-04-03  David S. Miller  <davem@redhat.com>
7518
7519         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
7520         library sequence passed to the linker.
7521         (LINK_COMMAND_SPEC): Use it.
7522         * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
7523         a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
7524         * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7525
7526 2002-04-03  Jason Merrill  <jason@redhat.com>
7527
7528         * except.c (struct eh_status): Remove protect_list.
7529         (begin_protect_partials, end_protect_partials): Remove.
7530         (add_partial_entry): Remove.
7531         * except.h: Remove prototypes.
7532
7533         * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
7534         expand_decl_cleanup_eh.
7535
7536         PR c++/5636
7537         * tree.h (CLEANUP_EH_ONLY): New macro.
7538         * stmt.c (expand_decl_cleanup_eh): New fn.
7539         (expand_cleanups): Check CLEANUP_EH_ONLY.
7540         * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
7541         Use expand_decl_cleanup_eh.
7542         (expand_stmt): Adjust.
7543         * c-common.h: Adjust prototype.
7544
7545 2002-04-04  Hans-Peter Nilsson  <hp@axis.com>
7546
7547         * config/cris/cris.c (cris_target_asm_function_prologue): Cast
7548         uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
7549         (cris_target_asm_function_epilogue): Ditto.
7550         (cris_initial_frame_pointer_offset): Ditto.
7551         (cris_simple_epilogue): Ditto.
7552         (cris_expand_builtin_va_arg): Variable-size types come in
7553         by-reference.
7554
7555 2002-04-03  David S. Miller  <davem@redhat.com>
7556
7557         * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
7558         little-endian.
7559         (set_fast_math): Correct 'fsr' type.
7560
7561 2002-04-03  Richard Henderson  <rth@redhat.com>
7562
7563         PR opt/3569
7564         * langhooks.h (lang_hooks.decls.warn_unused_global): New.
7565         * toplev.c (check_global_declarations): Use it.
7566         * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
7567         (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7568         (LANG_HOOKS_DECLS): Add it.
7569         * langhooks.c (lhd_warn_unused_global_decl): New.
7570         * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7571         * c-objc-common.c (c_warn_unused_global_decl): New.
7572         * c-tree.h (c_warn_unused_global_decl): Declare.
7573         * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7574
7575 2002-04-03  Neil Booth  <neil@daikokuya.demon.co.uk>
7576
7577         * langhooks-def.h (lhd_set_decl_assembler_name,
7578         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
7579         (LANG_HOOKS_INITIALIZER): Update.
7580         * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
7581         * langhooks.h (struct lang_hooks): New hook.
7582         * tree.c (set_decl_assembler_name): Move to langhooks.c.
7583         (lang_set_decl_assembler_name): Remove.
7584         (init_obstacks): Don't set hook.
7585         (decl_assembler_name): New function.
7586         * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
7587         (decl_assembler_name): New.
7588         (lang_set_decl_assembler_name): Remove.
7589
7590 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
7591
7592         * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
7593         works properly with .hidden symbols.
7594         * configure: Rebuilt.
7595         * config.in: Rebuilt.
7596         * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
7597         DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
7598         properly with .hidden symbols.
7599
7600 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
7601
7602         PR middle-end/6102
7603         * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
7604         USE argument.
7605
7606 2002-04-03  Richard Henderson  <rth@redhat.com>
7607
7608         PR opt/4120
7609         * sched-rgn.c (sets_likely_spilled): New.
7610         (sets_likely_spilled_1): New.
7611         (add_branch_dependences): Use it.
7612
7613 2002-04-02  Richard Henderson  <rth@redhat.com>
7614
7615         PR opt/4311
7616         * loop.h (LOOP_FIRST_PASS): New.
7617         * loop.c (strength_reduce): Mind it when deciding to unroll.
7618         * toplev.c (rest_of_compilation): Set it.
7619
7620 2002-04-02  David S. Miller  <davem@redhat.com>
7621
7622         * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
7623         mems_ok_for_ldd_peep when the order of the loads being examined
7624         is reversed.
7625         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
7626         existing comment to increase comprehension of this situation.
7627
7628 2002-04-02  Zack Weinberg  <zack@codesourcery.com>
7629
7630         * config/sh/sh.md: Don't use union real_extract.
7631
7632 2002-04-02  Richard Henderson  <rth@redhat.com>
7633
7634         * libgcc2.c (__bb_exit_func): Revert 03-31 change.
7635
7636 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
7637
7638         * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
7639         i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
7640         i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
7641         i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
7642         i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
7643         i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
7644         i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
7645         i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
7646         i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
7647         i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
7648         i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
7649         i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
7650         i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
7651         i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
7652         Include as many configury headers via tm_file as possible.  This
7653         includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
7654         * config/openbsd-oldgas.h: New file.
7655         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
7656         config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
7657         config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
7658         config/i386/i386-coff.h, config/i386/i386-interix.h,
7659         config/i386/iscdbx.h, config/i386/linux-aout.h,
7660         config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
7661         config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
7662         config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
7663         config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
7664         config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
7665         config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
7666         config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
7667         config/i386/vxi386.h: Do not directly include configury headers.
7668         * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
7669         Directly include configury headers that are no longer automatically
7670         included by the above headers.
7671         * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
7672         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
7673         config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
7674         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
7675         config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
7676         config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
7677         config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
7678         (TARGET_VERSION): Define.
7679         * config/i386/beos-elf.h, config/i386/freebsd.h,
7680         config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
7681         config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
7682         config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
7683         config/i386/sco5.h, config/i386/sysv4.h
7684         (TARGET_VERSION): Do not need to protect.
7685         * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
7686         * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
7687         config/i386/freebsd-aout.h, config/i386/i386-aout.h,
7688         config/i386/i386-interix.h, config/i386/linux-aout.h,
7689         config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
7690         config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
7691         (YES_UNDERSCORES): Do not define - not needed.
7692         * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
7693         ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
7694         USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
7695         * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
7696         (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
7697         USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
7698         * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
7699         * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
7700
7701 2002-04-02  Eric Botcazou  <ebotcazou@multimania.com>
7702             Richard Henderson  <rth@redhat.com>
7703
7704         PR c/5484
7705         * function.c (assign_temp): Accept either type or decl argument.
7706         Detect variables whose size is too large to fit into an integer.
7707         * stmt.c (expand_decl): Pass the decl, not the type.
7708
7709 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
7710
7711         * protoize.c: Match include directory usage with cppdefault.c.
7712
7713 2002-04-03  Jeffrey A Law  (law@redhat.com)
7714             Hans-Peter Nilsson  <hp@bitrange.com>
7715
7716         * combine.c (simplify_comparison): Avoid narrowing a comparison
7717         with a paradoxical subreg when doing so would drop signficant bits.
7718
7719 2002-04-02  Steve Ellcey  <sje@cup.hp.com>
7720
7721         * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
7722         if POINTERS_EXTEND_UNSIGNED is defined.
7723
7724 2002-04-02  Richard Henderson  <rth@redhat.com>
7725
7726         PR opt/3967
7727         * local-alloc.c (contains_replace_regs): LO_SUM may contain
7728         replace regs.
7729
7730 2002-04-02  Richard Henderson  <rth@redhat.com>
7731
7732         * doc/standards.texi: Document required freestanding libc entry points.
7733
7734 2002-04-02  Alan Modra  <amodra@bigpond.net.au>
7735
7736         * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
7737         associated splitter.  Remove MQ constraint.
7738         (ctrdi_internal4): Correct CCmode clobber.
7739
7740 2002-04-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7741
7742         * milli64.S ($$dyncall): New function.
7743         * t-linux (LIB1ASMFUNCS): Revise module list.
7744         (LIB1ASMSRC): Use pa/milli64.S.
7745
7746 2002-04-02  Richard Henderson  <rth@redhat.com>
7747
7748         * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
7749         rename solaris_sys_varargs_h.
7750
7751 Tue Apr  2 06:47:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7752
7753         * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
7754         the same mode as its component.
7755
7756 2002-04-02  Richard Henderson  <rth@redhat.com>
7757
7758         PR opt/190
7759         * final.c (this_is_asm_operands): Export.
7760         * output.h (this_is_asm_operands): Declare.
7761         * config/i386/i386.c (print_operand): Error odd asm operands.
7762
7763 2002-04-02  Richard Henderson  <rth@redhat.com>
7764
7765         PR opt/420
7766         * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
7767
7768 2002-04-01  Richard Henderson  <rth@redhat.com>
7769
7770         PR target/1538
7771         * fixinc/inclhack.def (solaris_sys_varargs_h): New.
7772         * fixinc/fixincl.x: Rebuild.
7773
7774 2002-04-01  Richard Henderson  <rth@redhat.com>
7775
7776         * config/ia64/unwind-ia64.c: Include ia64intrin.h.
7777         (atomic_alloc, atomic_free): New.
7778         (SIZE, MASK_FOR, PTR_IN): New.
7779         (emergency_reg_state, emergency_reg_state_free): New.
7780         (emergency_labeled_state, emergency_labeled_state_free): New.
7781         (reg_state_alloced, labeled_state_alloced): New.
7782         (alloc_reg_state, free_reg_state): New.
7783         (alloc_label_state, free_label_state, free_label_states): New.
7784         (push, pop, dup_state_stack, free_state_stack): Use them.
7785         (desc_label_state): Likewise.
7786         (uw_frame_state_for): Free label states and state stack.
7787         (uw_update_reg_address): Eliminate warnings.
7788
7789 2002-04-01  Vladimir Makarov  <vmakarov@redhat.com>
7790
7791         * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
7792         ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
7793
7794 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
7795
7796         * c-decl.c (grokdeclarator): Update.
7797         * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
7798         * c-tree.h (c_mark_addressable): New.
7799         * c-typeck.c (default_function_array_conversion, build_unary_op,
7800         build_array_ref, convert_for_assignment): Update.
7801         (mark_addressable): Rename.
7802         * calls.c (try_to_integrate, expand_call): Use langhook.
7803         * expr.c (expand_expr): Use langhook.
7804         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
7805         * langhooks.h (struct lang_hooks): New hook.
7806         * stmt.c (expand_asm_operands): Use langhook.
7807         * tree.h (mark_addressable): Remove.
7808 objc:
7809         * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
7810
7811 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
7812
7813         * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
7814         in previous change.
7815
7816 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
7817
7818         * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
7819         for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
7820
7821 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
7822
7823         * c-common.c (unsigned_conversion_warning, convert_and_check,
7824         unsigned_type, signed_type, shorten_compare,
7825         c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
7826         (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
7827         * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
7828         New.
7829         * c-decl.c (grokdeclarator): Update.
7830         * c-format.c (check_format_types): Update.
7831         * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
7832         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
7833         * c-typeck.c (build_binary_op, convert_for_assignment): Update.
7834         * convert.c (convert_to_integer): Use new hooks.
7835         * expmed.c (make_tree): Use new hooks.
7836         * expr.c (store_expr): Use new hooks.
7837         * fold-const.c (operand_equal_for_comparison_p, build_range_check,
7838         all_ones_mask_p, unextend, fold): Use new hooks.
7839         * langhooks.h (struct lang_hooks_for_types): New hooks.
7840         * tree.h (signed_or_unsigned_type, signed_type,
7841         unsigned_type): Remove.
7842 objc:
7843         * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
7844         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
7845
7846 2002-03-31  Richard Henderson  <rth@redhat.com>
7847
7848         * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
7849         (desc_frgr_mem): Fix reference to f16-f31.
7850
7851 2002-03-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7852
7853         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
7854         RTVEC_ELT): Const-ify.
7855         * varray.h (VARRAY_CHECK): Const-ify.
7856         * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
7857         ggc_mark_rtvec, ggc_mark): Const-ify.
7858
7859 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
7860
7861         * diagnostic.c: Include langhooks-def.h.
7862         * Makefile.in (diagnostic.o): Update.
7863
7864 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
7865
7866         * c-common.c (c_unsafe_for_reeval): Rename.
7867         * c-common.h (c_unsafe_for_reeval): Rename.
7868         * c-decl.c (finish_incomplete_decl): Rename.
7869         (c_init_decl_processing): Don't set langhook.
7870         * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
7871         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
7872         * c-objc-common.c (c_objc_common_init): Don't set langhook.
7873         * c-tree.h (finish_incomplete_decl): Rename.
7874         * langhooks-def.h (lhd_unsafe_for_reeval): New.
7875         (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
7876         (LANG_HOOKS_INITIALIZER): Update.
7877         * langhooks.c (lhd_unsafe_For_reeval): New.
7878         * langhooks.h (struct langhooks): New hooks.
7879         * toplev.c (incomplete_decl_finalize_hook): Remove.
7880         (wrapup_global_declarations): Update.
7881         * tree.c (lang_unsafe_for_reeval): Remove.
7882         (unsafe_for_reeval): Update.
7883         * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
7884         Remove.
7885 objc:
7886         * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
7887         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
7888
7889 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
7890
7891         * diagnostic.c (print_error_function): Remove.
7892         (default_print_error_function): Rename.
7893         (report_error_function): Update.
7894         * diagnostic.h (print_error_function): Remove.
7895         (default_print_error_function): Remove.
7896         * langhooks-def.h (struct diagnostic_context): Predeclare.
7897         (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
7898         (LANG_HOOKS_INITIALIZER): Update.
7899         * langhooks.h (struct diagnostic context): Predeclare.
7900         (struct lang_hooks): New hook.
7901
7902 2002-03-31  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
7903
7904         * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
7905         (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
7906         !flag_pic.
7907         (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
7908         * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
7909         of PIC_OFFSET_TABLE_REGNUM thruout.
7910         * config/rs6000/rs6000.md: Likewise.
7911         * config/rs6000/darwin.h: Likewise.
7912
7913 Sun Mar 31 14:43:24 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7914
7915         * emit-rtl.c (adjust_address_1, offset_address): Cast value to
7916         unsigned HOST_WIDE_INT, not unsigned int.
7917
7918 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
7919
7920         PR middle-end/6096, middle-end/6098, middle-end/6099
7921         * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
7922         CODE_LABELs.
7923         (fill_slots_from_thread): Likewise.
7924
7925 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
7926
7927         * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
7928         floating fields in float regs.
7929         (function_arg_record_value_2): Likewise.
7930
7931 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
7932
7933         * config/mmix/mmix.md (define_constants): Remove misleading
7934         FIXME.  Add MMIX_fp_rO_OFFSET.
7935         ("nonlocal_goto_receiver"): Don't have stack-frame address of
7936         saved rO as part of the pattern.  Remove FIXME.
7937         ("*nonlocal_goto_receiver_expanded"): Similar.  Generate address
7938         here, at output-time.
7939
7940 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
7941
7942         PR middle-end/6100
7943         * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
7944         REG_BR_PRED.
7945         (output_v9branch): Likewise.
7946
7947 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
7948
7949         * gcc.c: Revert previous patch for now.
7950         * config/i386/djgpp.h: Likewise.
7951
7952 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
7953
7954         * config/mmix/crti.asm (_init): Register _fini with atexit.
7955         * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
7956
7957 2002-03-31  Richard Henderson  <rth@redhat.com>
7958
7959         PR target/3997
7960         * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
7961         (ASM_OUTPUT_DEF_FROM_DECLS): New.
7962
7963 2002-03-31  Richard Henderson  <rth@redhat.com>
7964
7965         * libgcc2.c (__bb_exit_func): Make static.
7966
7967         * config/alpha/alpha.md (trap): New.
7968
7969 2002-03-31  Richard Henderson  <rth@redhat.com>
7970
7971         * builtins.c (expand_builtin_va_arg): Give warnings not errors for
7972         promoted argument types; build trap.
7973         (expand_builtin_trap): New.
7974         (expand_builtin): Use it.
7975         * stmt.c (expand_nl_goto_receivers): Likewise.
7976         * expr.h (expand_builtin_trap): Declare.
7977         * libfuncs.h (LTI_abort, abort_libfunc): New.
7978         * optabs.c (init_optabs): Init abort_libfunc.
7979
7980 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
7981
7982         * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
7983         (LINK_COMMAND_SPEC): ... from here.
7984         (init_gcc_specs): Duplicate it here too, omitting
7985         shared_name in the second copy.
7986         (init_spec): Test for duplicate
7987         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
7988
7989 2002-03-30  David S. Miller  <davem@redhat.com>
7990
7991         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
7992         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
7993
7994 2002-03-30  Roger Sayle <roger@eyesopen.com>
7995             Richard Henderson  <rth@redhat.com>
7996
7997         * regmove.c (combine_stack_adjustments_for_block): Avoid
7998         emitting a stack adjustment of zero bytes.  Let delete_insn
7999         update bb->head.
8000
8001 2002-03-30  Richard Henderson  <rth@redhat.com>
8002
8003         * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
8004         (sparc_emitting_epilogue): New.
8005         (leaf_label, output_return, sparc_return_peephole_ok): Remove.
8006         * config/sparc/sparc-protos.h: Update.
8007         * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
8008         (TARGET_SWITCHES): Update.
8009         * config/sparc/sparc.md (return): Remove.
8010         (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
8011         * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
8012         config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
8013         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
8014         config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
8015         config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
8016         config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
8017         Remove MASK_EPILOGUE.
8018         * doc/invoke.texi: Update.
8019
8020 2002-03-30  Daniel Berlin  <dan@dberlin.org>
8021
8022         * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
8023         CPP will start the file for us.
8024
8025 2002-03-30  Richard Henderson  <rth@redhat.com>
8026
8027         PR target/5446
8028         * config/ia64/ia64.c (group_barrier_needed_p): Special case
8029         prologue_allocate_stack.
8030         (ia64_single_set): Use insn codes for recognition of special
8031         cases, not rtl matching.
8032         * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
8033
8034 Sat Mar 30 23:48:41 CET 2002  Jan Hubicka  <jh@suse.cz>
8035
8036         * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
8037
8038 2002-03-30  Richard Henderson  <rth@redhat.com>
8039
8040         PR target/6032
8041         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
8042         or -fomit-frame-pointer with profiling.
8043         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
8044         (FUNCTION_PROFILER): Do nothing.
8045         (PROFILE_HOOK): New.
8046         * config/sparc/sparc.c (sparc_override_options): Don't check
8047         code models for profiling.
8048         (sparc_function_profiler): Remove.
8049         (sparc_profile_hook): New.
8050         * config/sparc/sparc-protos.h: Update.
8051
8052 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
8053
8054         PR optimization/6086
8055         * combine.c (combine_simplify_rtx): If simplify_rtx failed because
8056         of SUBREG of volatile MEM or because the MEM was mode dependent,
8057         return CLOBBER instead of unmodified SUBREG.
8058
8059 Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
8060
8061         * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
8062         when not optimizing.
8063
8064         * toplev.c (rest_of_compilation): Cann mark_constant_function
8065         only when optimizing.
8066
8067         * flow.c (calculate_global_regs_live): Ensure that all AUX fields
8068         are NULL.
8069
8070         * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
8071         (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
8072         (try_optimize_cfg): clear all AUX fields.
8073
8074         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
8075         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
8076         (ix86_address_cost): Be prepared for SUBREGed registers.
8077         (legitimate_address_p): Accept SUBREGed registers.
8078
8079 2002-03-29  Richard Henderson  <rth@redhat.com>
8080
8081         PR target/5672
8082         * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
8083
8084 2002-03-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8085
8086         * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
8087         for aggregate and TFmode types.
8088
8089 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
8090
8091         * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
8092
8093 2002-03-29  Richard Henderson  <rth@redhat.com>
8094
8095         PR target/5886
8096         * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
8097         * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
8098
8099 2002-03-29  Richard Henderson  <rth@redhat.com>
8100
8101         PR target/6041
8102         * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
8103         (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
8104         * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
8105         * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
8106         conditional.
8107         * docs/invoke.texi: Update -mno-fancy-math-387 docs.
8108
8109 2002-03-29  Dale Johannesen <dalej@apple.com>
8110
8111         * loop.c (combine_movables): Do allow combination of pseudos.
8112
8113 2002-03-29  Loren J. Rittle  <ljrittle@acm.org>
8114
8115         * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
8116         * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
8117         No functional change except ...
8118         * config/t-slibgcc-nolc-override (SHLIB_LC): Override it.  New file.
8119         * doc/install.texi (*-*-freebsd*): Document port configuration.
8120
8121 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
8122
8123         * Makefile.in (convert.o, calls.o, expmed.o): Update.
8124         * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
8125         Use new hooks.
8126         * builtin-types.def (BT_PTRMODE): Update.
8127         * c-common.c (type_for_size): Rename c_common_type_for_size.
8128         (type_for_mode): Similarly.
8129         (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
8130         Use new hook.
8131         * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
8132         * c-decl.c (finish_enum, build_enumerator): Use new hooks.
8133         * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
8134         Redefine.
8135         * c-typeck.c (common_type, comptypes, default_conversion):
8136         Use new hooks.
8137         * calls.c: Include langhooks.h.
8138         (emit_library_call_value_1): Use new hooks.  Avoid redundant
8139         calls.
8140         * convert.c: Include langhooks.h
8141         (convert_to_pointer, convert_to_integer): Use new hooks.
8142         * except.c (init_eh): Similarly.
8143         * expmed.c: Include langhooks.h.
8144         (expand_mult_add): Use new hooks.
8145         * expr.c (store_expr, store_constructor, expand_expr, do_jump,
8146         try_casesi): Similarly.
8147         * fold-const.c (optimize_bit_field_compare, make_range,
8148         decode_field_reference, fold_truthop, fold): Similarly.
8149         * function.c (assign_stack_local_1, assign_stack_temp_for_type,
8150         put_var_into_stack): Similarly.
8151         * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
8152         LANG_HOOKS_TYPE_FOR_SIZE): New.
8153         (LANG_HOOKS_TYPES_INITIALIZER): Update.
8154         * langhooks.h (lang_hooks_for_types): New hooks.
8155         * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
8156         * tree.c (get_unwidened, get_narrower): Similarly.
8157         * tree.h (type_for_mode, type_for_size): Remove.
8158         * varasm.c (force_const_mem): Use new hooks.
8159         * utils2.c (nonbinary_modular_operation): Update.
8160 objc:
8161         * objc-act.c (handle_impent): Update.
8162         * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
8163         Redefine.
8164
8165 2002-03-29  Steve Ellcey  <sje@cup.hp.com>
8166
8167         * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
8168         * config/ia64/ia64.c (basereg_operand): New.
8169         * config/ia64/ia64-protos.h (basereg_operand): Declare.
8170         * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
8171
8172 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
8173
8174         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
8175         unwind information when frame_pointer_needed.
8176         (mmix_assemble_integer): Tweak wording in comment.
8177
8178 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
8179
8180         * Makefile.in (except.o): Update.
8181         * except.c: Include langhooks.h.
8182         (init_eh): Use langhook.
8183         * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
8184         LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
8185         (LANG_HOOKS_INITIALIZER): Update.
8186         * langhooks.h (lang_hooks_for_types): New.
8187         (struct lang_hooks): Add it.
8188         * tree.c (make_lang_type_fn, make_lang_type): Remove.
8189         * tree.h (make_lang_type_fn, make_lang_type): Remove.
8190 config:
8191         * alpha/alpha.c: Include langhooks.h.
8192         (alpha_build_va_list): Use langhook.
8193         * d30v/d30v.c: Include langhooks.h.
8194         (d30v_build_va_list): Use langhook.
8195         * i386/i386.c: Include langhooks.h.
8196         (ix86_build_va_list): Use langhook.
8197         * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
8198         * s390/s390.c: Include langhooks.h.
8199         (s390_build_va_list): Use langhook.
8200         * stormy16/stormy16.c: Include langhooks.h.
8201         (stormy16_build_va_list): Use langhook.
8202
8203 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
8204
8205         PR c++/5964
8206         * config/sparc/sparc.md (empty_delay_slot, branch_type): New
8207         attributes.
8208         (length): Compute variable length for branches/calls/jumps here.
8209         (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
8210         normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
8211         define branch_type attribute.
8212         (divsi3_sp32): Maximum length is 6 not 7.
8213         (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
8214         call_address_untyped_struct_value_sp32,
8215         call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
8216         * config/sparc/sparc.c (empty_delay_slot): New function.
8217         * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
8218         * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
8219
8220 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
8221
8222         * combine.c (set_nonzero_bits_and_sign_copies): Don't call
8223         nonzero_bits if not needed.
8224         (nonzero_bits) [XOR]: Likewise.
8225         (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
8226         reg_last_set_mode and mode are both MODE_INT, but not equal.
8227         (record_value_for_reg): Compute reg_last_set_nonzero_bits
8228         in nonzero_bits_mode for MODE_INT modes.
8229
8230 2002-03-28  Richard Henderson  <rth@redhat.com>
8231
8232         PR target/5715
8233         * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
8234         to GAS.  Correct drift between alternatives.
8235
8236 2002-03-28  Richard Henderson  <rth@redhat.com>
8237
8238         PR target/6087
8239         * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
8240
8241 2002-03-28  Alexandre Oliva  <aoliva@redhat.com>
8242
8243         * config/i386/freebsd.h (LINK_SPEC): Don't pass default
8244         emulation to the linker.
8245
8246 2002-03-28  Loren J. Rittle  <ljrittle@acm.org>
8247
8248         * config/alpha/freebsd.h (LINK_SPEC): Likewise.
8249         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
8250
8251 Thu Mar 28 16:35:31 2002  Jeffrey A Law  (law@redhat.com)
8252
8253         * combine.c (simplify_and_const_int): Make sure to apply mask
8254         when force_to_mode returns a constant integer.  PR3311.
8255
8256 2002-03-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8257
8258         * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
8259
8260 2002-03-28  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8261
8262         * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
8263         and Objective-C Dialect Options.
8264
8265 2002-03-28  Richard Henderson  <rth@redhat.com>
8266
8267         * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
8268         comparison should be done vs !=0 not >0 return code.  Tidy cases.
8269
8270 2002-03-28  Richard Henderson  <rth@redhat.com>
8271
8272         * c-decl.c (finish_function): New arg can_defer_p.  Pass it
8273         on to c_expand_body.
8274         * c-tree.h (finish_function): Update decl.
8275         * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
8276
8277 Thu Mar 28 19:13:36 CET 2002  Jan Hubicka  <jh@suse.cz>
8278
8279         * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
8280
8281 Thu Mar 28 13:21:53 CET 2002  Jan Hubicka  <jh@suse.cz>
8282
8283         * rtlanal.c: Include flags.h
8284         (may_trap_p): Do not mark FP operations if trapping
8285         if !flag_trapping_math
8286         * Makefile.in (rtlanal.o): Add dependency on flag.h
8287         * ifcvt.c (noce_operand_ok): Avoid the lameness.
8288
8289 2002-03-27  Zack Weinberg  <zack@codesourcery.com>
8290
8291         * mips.md: Use dconst1, not 1.0, as first argument of
8292         REAL_VALUE_LDEXP.  Don't use union real_extract.
8293
8294 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
8295
8296         * configure.in (gcc_cv_as): Use $target_alias in directory searchs
8297         rather than $target.  Heed program_prefix and
8298         program_transform_name.  Search for gas in cross-compiler case too.
8299         "test -x" rather than "test -f".
8300         (gcc_cv_ld): Likewise.
8301         (gcc_cv_nm): Heed program_prefix and program_transform_name.
8302         (gcc_cv_objdump): Likewise.
8303         * configure: Regenerate.
8304
8305 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
8306
8307         * Makefile.in (attribs.o): Update.
8308         * attribs.c: Include langhooks.h.
8309         (decl_attributes): Use langhook.
8310         * c-decl.c (insert_default_attributes): Rename.
8311         * c-tree.h (c_insert_default_attributes): New.
8312         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
8313         (LANG_HOOKS_INITIALIZER): Update.
8314         * langhooks.h (struct lang_hooks): New hook.
8315         * tree.h (insert_default_attributes): Remove.
8316 objc:
8317         * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
8318
8319 2002-03-27  Andreas Schwab  <schwab@suse.de>
8320
8321         * config/i386/i386.c (classify_argument): Also check for
8322         QUAL_UNION_TYPE.
8323
8324 2002-03-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8325
8326         * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
8327         any more.
8328
8329 Wed Mar 27 23:19:30 CET 2002  Jan Hubicka  <jh@suse.cz>
8330
8331         * i960.md (ret): Set PC.
8332         (nonlocal_goto): Fix expander.
8333         * builtins.c (epxand_builin_longjmp): Check that we've emitted
8334         some jump or call.
8335
8336 Wed Mar 27 23:11:35 CET 2002  Jan Hubicka  <jh@suse.cz>
8337
8338         * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
8339         of libcall regions.
8340
8341 Wed Mar 27 22:54:14 CET 2002  Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8342
8343         * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
8344         assigning to BLOCK_FOR_INSN directly.
8345
8346 Wed Mar 27 22:33:05 CET 2002  Jan Hubicka  <jh@suse.cz>
8347
8348         * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
8349
8350 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
8351
8352         * c-common.c (c_expand_expr): Fix prototype.
8353         * c-common.h (c_expand_expr): Always declare, update.
8354         * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
8355         * c-objc-common.c (c_objc_common_init): No global hook.
8356         * expr.c (expand_expr): Use langhook.
8357         * expr.h (enum expand_modifier): Conditionally declare.
8358         * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
8359         (LANG_HOOKS_INITIALIZER): Update.
8360         * langhooks.c (lhd_expand_expr): New.
8361         * langhooks.h (struct lang_hooks): New hook.
8362         * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
8363         (lang_independent_init): Don't default hook.
8364 objc:
8365         * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
8366
8367 2002-03-27  Richard Henderson  <rth@redhat.com>
8368
8369         PR target/6054
8370         * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
8371         TARGET_CONST_GP.  Simplify conditions.
8372
8373 2002-03-27  Richard Henderson  <rth@redhat.com>
8374
8375         * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
8376         config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
8377         config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
8378
8379 2002-03-27  Danny Smith  <dannysmith@users.sourceforge.net>
8380
8381         * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
8382         TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
8383         (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
8384         Remove unnecessary masks.
8385         (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
8386         (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
8387         -mwindows, -mdll switches and their negations.
8388
8389 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
8390
8391         * gcc-common.c (lang_mark_false_label_stack): Remove.
8392         * ggc.h (lang_mark_false_label_stack): Similarly.
8393
8394 2002-03-26  Vladimir Makarov  <vmakarov@redhat.com>
8395
8396         * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
8397
8398         * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
8399         or __rtems_ is defined.
8400
8401 2002-03-26  Richard Henderson  <rth@redhat.com>
8402
8403         * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
8404         if a non-trivial load was emitted.
8405         (alpha_emit_set_const_1): Remove obsolete extension.  Fix thinko
8406         in high+extra+low case.
8407
8408 2002-03-26  Richard Henderson  <rth@redhat.com>
8409
8410         * config.gcc (sparc*-solaris): Use float_format=sparc.
8411
8412 2002-03-26  Richard Henderson  <rth@redhat.com>
8413
8414         * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
8415         * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
8416         * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
8417         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
8418         (WINT_TYPE_SIZE): Fix at 32.
8419
8420 2002-03-26  Richard Henderson  <rth@redhat.com>
8421
8422         * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
8423         until after eh landing pad generation.
8424         * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
8425         * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
8426
8427 2002-03-26  Richard Henderson  <rth@redhat.com>
8428
8429         * expr.h (ADD_PARM_SIZE): One more convert for INC.
8430
8431 2002-03-26  Phil Edwards  <pme@gcc.gnu.org>
8432
8433         * gcc.c (cpp_options):  Preserve relative ordering of -pedantic
8434         and warning switches.
8435         (cc1_options):  Likewise.
8436
8437 2002-03-26  Hans Boehm <Hans_Boehm@hp.com>
8438
8439         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
8440         Restore more of the signal context.  Set no_reg_stack_frame.
8441         * config/ia64/unwind-ia64.c (unw_state_record):
8442         Add no_reg_stack_frame, comments.
8443         (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
8444         (uw_update_context): Adjust bsp when unwinding from leaf,
8445         but not signal frame.
8446
8447 2002-03-26  David Edelsohn  <edelsohn@gnu.org>
8448
8449         * config/rs6000/aix51.h (WCHAR_TYPE): Define.
8450
8451 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
8452
8453         * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
8454
8455 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
8456
8457         PR target/5621
8458         * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
8459         "Add a pool_range attribute", which was lost during the ARM/Thumb
8460         merge.
8461
8462 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
8463
8464         * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
8465         a register into the MAC16 accumulator.
8466
8467 2002-03-26  Andrew Cagney  <ac131313@redhat.com>
8468
8469         * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
8470         (Warning Options): Document -Wswitch-enum.
8471         * toplev.c (W_options): Add -Wswitch-enum.  Update comment on
8472         -Wswitch.
8473         (warn_switch_enum): Define variables.
8474         * flags.h (warn_switch_enum): Declare variables.
8475         * stmt.c (expand_end_case_type): When warn_switch_enum /
8476         -Wswitch-enum, perform switch checks.
8477         Fix PR c/5044.
8478
8479 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
8480
8481         * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
8482         (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
8483         (reload_muladdsi_compare0_scratch): Delete.
8484
8485 2002-03-26  Loren J. Rittle  <ljrittle@acm.org>
8486
8487         * doc/install.texi (*-*-freebsd*): Update.
8488
8489 2002-03-26  Richard Henderson  <rth@redhat.com>
8490
8491         * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
8492         (SUB_PARM_SIZE): Cast DEC to ssizetype.
8493
8494         * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
8495         types from the normal argument frame.
8496
8497         * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
8498         variable sized objects by reference.
8499         (sparc_va_arg): Receive them by reference too.
8500
8501 2002-03-26  Hartmut Penner  <hpenner@de.ibm.com>
8502
8503         * config/s390/s390.c (s390_emit_epilogue): Change epilogue
8504         code to not restoring global registers.
8505
8506 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
8507
8508         * Makefile.in (ggc-common.o): Update.
8509         * c-decl.c (lang_mark_tree): Rename c_mark_tree.
8510         * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
8511         * c-tree.h (c_mark_tree): New.
8512         * ggc-common.c: Include langhooks.h.
8513         (gcc_mark_trees): Use new langhook.
8514         * ggc-callbacks.c: Delete file.
8515         * ggc.h (lang_mark_tree): Remove.
8516         * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
8517         (LANG_HOOKS_INITIALIZER): Update.
8518         * langhooks.h (struct lang_hooks): New hook.
8519 objc:
8520         * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
8521
8522 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
8523
8524         * doc/cpp.texi: Exclude entire Top node from printed manual.
8525         Move option index after directive index.  Insert page breaks
8526         before GFDL and concept index.  Index environment variables
8527         with command line options.
8528         * doc/cppenv.texi: Use @vtable for environment variable list.
8529         Add paragraph explaining semantics of empty elements in path
8530         variables.  Exclude a cross-reference to Fishkill from the
8531         manpage.  Remove an unnecessary cross-reference of the entry
8532         right above the referer.  Don't use @anchor in text that goes
8533         into manpage.
8534         * doc/cppopts.texi: Cross-reference the environment variables
8535         section, not the specific environment variable, for consistency.
8536
8537 2002-03-25  Richard Henderson  <rth@redhat.com>
8538
8539         * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
8540         anywhere in the block.  Don't refer to insns that have been
8541         removed from the chain.  Iterate backward through the new insns.
8542         Don't refer to edges that have been removed.
8543
8544 2002-03-26  Alan Modra  <amodra@bigpond.net.au>
8545
8546         * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
8547         test for overflow of constant.
8548
8549 2002-03-25  Richard Earnshaw  <rearnsha@arm.com>
8550
8551         PR target/2623
8552         * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
8553         (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
8554         these patterns on arm_archv4.
8555
8556 2002-03-25  Danny Smith  <dannysmith@sourceforge.users.net>
8557
8558         * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
8559         int".
8560
8561 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
8562
8563         * toplev.c: Don't include setjmp.h.  Kill float_handler_set,
8564         float_handled, float_handler, float_signal, set_float_handler,
8565         and do_float_handler.  Set handler for SIGFPE to crash_signal.
8566         * toplev.h: Don't prototype do_float_handler.
8567
8568         * c-lex.c: Fold parse_float into lex_number.  Make warning
8569         about portability of hex float constants more informative, and
8570         don't issue it on top of a syntax error.
8571         * fold-const.c: Fold const_binop_1 and fold_convert_1 into
8572         their callers.
8573         * real.h: Define REAL_VALUE_ABS here...
8574         * simplify-rtx.c: ... not here.  Fold check_fold_consts,
8575         simplify_unary_real, simplify_binary_real, and
8576         simplify_binary_is2orm1 into their callers.
8577         * tree.c: Fold build_real_from_int_cst_1 into caller.
8578
8579         * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
8580
8581         * tsystem.h: Include float.h here...
8582         * libgcc2.c: ... not here.
8583
8584 2002-03-25  Nick Clifton  <nickc@cambridge.redhat.com>
8585
8586         Fixes for: PR bootstrap/3591, target/5676
8587         * config/mcore/mcore.h (CC1_SPEC): Define only if not already
8588         defined.  Do not disable exceptions or rtti.
8589         * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
8590         mcore.h.  Disable exceptions and rtti, since they are not
8591         supported by EPOC.
8592
8593 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
8594
8595         * c-decl.c (maybe_build_cleanup): Remove.
8596         * expr.c (expand_expr): Use langhook.
8597         * langhooks-def.h (lhd_return_null_tree,
8598         LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
8599         (LANGHOOKS_INITIALIZER): Update.
8600         * langhooks.c (lhd_return_null_tree): New.
8601         * langhooks.h (struct lang_hooks): New hook.
8602         * tree-inline.c (initialize_inlined_parameters): Use langhook.
8603         * tree.h (maybe_build_cleanup): Remove.
8604
8605 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
8606
8607         * regrename.c (build_def_use): Move recog_memoized
8608         before extract_insn.
8609
8610 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
8611
8612         PR target/6043
8613         * expr.c (emit_group_store): Handle storing into CONCAT.
8614
8615 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
8616
8617         * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
8618         corresponding MATCH_DUP.
8619
8620 2002-03-24  Richard Henderson  <rth@redhat.com>
8621
8622         * unroll.c (unroll_loop): Zero label_map.
8623
8624         * gcse.c: Include except.h.
8625         * Makefile.in (gcse.o): Update.
8626
8627 2002-03-24  Richard Henderson  <rth@redhat.com>
8628
8629         * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
8630         Do resolve_unique_section before shared data clause.
8631
8632 2002-03-24  Richard Henderson  <rth@redhat.com>
8633
8634         * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
8635
8636 2002-03-24  Richard Henderson  <rth@redhat.com>
8637
8638         * recog.c (peephole2_optimize): Split blocks when EH insns are
8639         generated in the middle of a block.  Do global life update if
8640         zapped EH edges.
8641
8642 2002-03-24  Richard Henderson  <rth@redhat.com>
8643
8644         * mips.c (mips_function_value): Only promote_mode for non-libcalls.
8645
8646 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
8647
8648         preprocessor/3951
8649         * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
8650         * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
8651         (init_dependency_output): Don't make no_output decision here.
8652
8653 2002-03-24  Andrew Cagney  <ac131313@redhat.com>
8654
8655         * stmt.c (check_for_full_enumeration_handling): Remove tests of
8656         warn_switch.  Update description.
8657         (expand_end_case_type): Call check_for_full_enumeration_handling
8658         when warn_switch.
8659
8660 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
8661
8662         * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
8663         (m68hc11_split_move): Call it to see if the source and destination
8664         operands use the same direction auto inc/dec mode, otherwise make the
8665         source an offsetable memory operand and generate an add.
8666
8667 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
8668
8669         * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
8670         register for operand 2.
8671         ("*subsi3_zero_extendqi"): Likewise.
8672         ("*iorhi3_gen"): Do the operation on the upper bits and then lower
8673         bits so that it is compatible with a pop.
8674         ("*andhi3_gen"): Likewise.
8675         ("xorhi3"): Likewise.
8676
8677 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
8678
8679         * cppinit.c (cpp_handle_option): Set warn_endif_labels if
8680         -pedantic here...
8681         (cpp_post_options): ... not here.
8682
8683 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
8684             Aldy Hernandez  <aldyh@redhat.com>
8685
8686         Removal of separate preprocessor cpp0.
8687
8688         * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
8689         cpp0, install-common): Update.
8690         * c-common.c (flag_preprocess_only): New.
8691         (c_common_init): Preprocess for -E.
8692         * c-common.h (flag_preprocess_only): New.
8693         * c-decl.c (c_decode_option): Handle -E and -std=c++98.
8694         * c-objc-common.c (c_init_decl_processing): Exit quickly
8695         for NULL return from c_common_init.
8696         * cpplib.h (cpp_preprocess_file): New.
8697         * cppmain.c (main, general_init, pfile, progname): Remove.
8698         (do_preprocessing): Rename cpp_preprocess_file, don't call
8699         cpp_finish.  Don't close stdout here.
8700         (setup_callbacks): Update prototype.
8701         * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
8702         Update.
8703         * tradcpp.c (main): Ignore -quiet.
8704 objc:
8705         * lang-specs.h (default_compilers): Preprocess with cc1obj.
8706
8707 2002-03-24  Richard Henderson  <rth@redhat.com>
8708
8709         PR optimization/5742
8710         * machmode.def: Add inner mode field to complex modes.
8711         * config/mips/mips.c (mips_function_value): Always define.  Add
8712         new argument to handle libcalls.
8713         * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
8714         (FUNCTION_VALUE): Likewise.
8715         * config/mips/abi64.h (FUNCTION_VALUE): Remove.
8716         * config/mips/mips-protos.h: Update.
8717
8718 2002-03-23  Richard Henderson  <rth@redhat.com>
8719
8720         * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
8721         * config/sparc/sparc-protos.h: Update.
8722         * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
8723
8724 2002-03-23  Richard Henderson  <rth@redhat.com>
8725
8726         * config/sparc/gmon-sol2.c (internal_mcount): Assume either
8727         _start or _init begins the text segment.
8728
8729 2002-03-23  David Edelsohn  <edelsohn@gnu.org>
8730
8731         * config/rs6000/rs6000.h (RETURN_IN_MEMORY):  Cast to HOST_WIDE_INT
8732         not HOST_WIDEST_INT.
8733         (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
8734
8735 2002-03-23  Richard Earnshaw  <rearnsha@arm.com>
8736
8737         PR java/5489
8738         * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
8739         operand argument to output_return_instruction.
8740         * arm.c (arm_print_operand, case 'd'): If the operand is
8741         const_true_rtx then just return.
8742         (arm_print_operand, case 'D'): If the operand is const_true_rtx
8743         then abort.
8744
8745 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
8746
8747         * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
8748         (Warning Options): Document -Wswitch-default.
8749         * toplev.c (W_options): Add -Wswitch-default.  Update comment on
8750         -Wswitch.
8751         (warn_switch_default): Define variable.
8752         (warn_switch): Update comment.
8753         * flags.h (warn_switch_default): Declare variable.
8754         (warn_switch): Update comment.
8755         * stmt.c (expand_end_case): Check for and, when
8756         warn_switch_no_default, warn of a missing default case.
8757
8758 2002-03-23  Alan Modra  <amodra@bigpond.net.au>
8759
8760         * real.h (N): Special case 128 bit doubles.
8761
8762         * combine.c (simplify_comparison): When widening modes, ignore
8763         sign extension on CONST_INTs.
8764
8765 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
8766
8767         * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
8768         passed to adjust_address.  Fix comment formatting.
8769
8770
8771 2002-03-22  Zack Weinberg  <zack@codesourcery.com>
8772
8773         * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
8774         Always make REAL_VALUE_TYPE a struct containing an array of
8775         HOST_WIDE_INT, not a double.  Tidy up the code deciding how
8776         big it is.  Don't declare or use union real_extract.
8777
8778         * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
8779         decode_rtx_const, output_constant_pool), config/a29k/a29k.c
8780         (print_operand), config/arm/arm.c (output_move_double),
8781         config/arm/arm.md (consttable_4, consttable_8),
8782         config/romp/romp.c (output_fpops), config/s390/s390.h
8783         (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
8784         (xtensa_output_literal): Don't use union real_extract.
8785
8786         * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
8787         (sfmode_constant_to_ulong), config/ns32k/merlin.h
8788         (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
8789         config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
8790         (PRINT_OPERAND): Don't use local version of union
8791         real_extract.
8792
8793         * config/convex/convex.c (check_float_value), config/vax/vax.c
8794         (vax_float_literal), config/m88k/m88k.md (divdf3),
8795         config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
8796         config/pdp11/pdp11.c (output_move_quad): Don't do host
8797         arithmetic on target floating point quantities.
8798
8799         * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
8800         (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
8801
8802         * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
8803         Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
8804
8805         * real.c (earith): Test INFINITY rather than REAL_INFINITY;
8806         NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
8807         INFINITY.
8808         * print-rtl.c (print_rtx): Disable code which needs
8809         floating-point emulator.
8810         * libgcc2.c: Include float.h and use DBL_MANT_DIG,
8811         FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
8812         depending on HOST_FLOAT_FORMAT to be defined properly.
8813
8814         * config/1750a/1750a.c (get_double, float_label): Delete.
8815         (print_operand): Delete huge commented-out chunk.  Use
8816         REAL_VALUE_TO_DECIMAL.
8817         * config/1750a/1750a-protos.h: Delete prototypes of deleted
8818         functions.
8819         * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
8820         IEEE_FLOAT_FORMAT.
8821         * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
8822         Use REAL_VALUE_TO_DECIMAL as ELF version does.
8823         * config/m88k/m88k.c (real_power_of_2_operand,
8824         legitimize_operand): Take the REAL_VALUE_TYPE and/or union
8825         real_extract out of the union; run the input through
8826         REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
8827         from that into the union.
8828         * config/pdp11/pdp11.c (output_move_double): Rearrange
8829         parentheses to make automatic indenter happy.
8830
8831         * doc/tm.texi (Cross-compilation): Rename node to "Floating
8832         Point" and rewrite to describe current situation.  Also adjust
8833         documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
8834         match code.
8835         * doc/rtl.texi: Adjust cross reference.
8836
8837 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
8838
8839         * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
8840         (xtensa_valid_move, xtensa_preferred_reload_class): Define.
8841         * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
8842         (xtensa_valid_move, xtensa_preferred_reload_class): Define to
8843         prevent use of sp as a reload register.
8844         (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
8845         non_acc_reg_operand.
8846         * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
8847         (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
8848         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
8849         movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
8850
8851 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
8852
8853         * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
8854         * cpplex.c (unterminated): Delete.
8855         (parse_string): No string literal may extend over multiple
8856         lines.  Suppress the error when preprocessing assembly.
8857         * cppmain.c (scan_translation_unit): Strings are single-line.
8858
8859         * doc/cpp.texi: Update to match.
8860
8861 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
8862
8863         PR optimization/5854
8864         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
8865         Shut up warnings.
8866         (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
8867         (EXTRA_CONSTRAINT): Use S for non-push memory operand.
8868         * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
8869         const0 if scratch register was not allocated.
8870         (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
8871         m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
8872         with GEN_INT (...).
8873         (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
8874         * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
8875         with GEN_INT (...) everywhere.  Remove constraints in define_split
8876         patterns.
8877         (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
8878         require scratch register for setting 0 into regs/non-pushable memory.
8879
8880 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
8881
8882         * config/mips/mips.h (MASK_RETURN_ADDR): Define.
8883         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
8884
8885 2002-03-22  Phil Edwards  <pme@gcc.gnu.org>
8886
8887         * cpplib.h (struct cpp_options):  New member, warn_endif_labels.
8888         * cppinit.c (cpp_create_reader):  On by default.
8889         (cpp_handle_option):  Handle -W[no-]endif-labels.
8890         (cpp_post_options):  Also enable if -pedantic.
8891         * cpplib.c (do_else):  Use it.
8892         (do_endif):  Likewise.
8893         * doc/cppopts.texi:  Document new option.
8894         * doc/invoke.texi:  Document new option.
8895
8896 2002-03-22  Lars Brinkhoff  <lars@nocrew.org>
8897
8898         * config/i386/i386.c, config/i386/i386.md: Change all occurences
8899         of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
8900
8901 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
8902
8903         * flow.c (calculate_global_regs_live): Clear aux fields of
8904         ENTRY and EXIT.
8905
8906 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
8907
8908         * config/v850/v850.c (v850_reorg): Only call alter_subreg on
8909         REG or MEM subregs, pass rtx * instead of rtx to it.
8910         * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
8911         rtx * instead of rtx to alter_subreg.
8912         * config/m32r/m32r.c (gen_split_move_double): Likewise.
8913         * config/pj/pj.c (pj_output_rval): Likewise.
8914
8915 2002-03-22  Richard Henderson  <rth@redhat.com>
8916
8917         PR target/3177
8918         * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
8919         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
8920         * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
8921         (ia64_expand_prologue): Look at int_regs, not words, for number
8922         of incomming int regs.
8923
8924 2002-03-22  Andrew MacLeod  <amacleod@redhat.com>
8925
8926         * expr.c (expand_expr): A RESULT_DECL is part of a call.
8927
8928 Fri Mar 22 16:30:42 CET 2002  Jan Hubicka  <jh@suse.cz>
8929
8930         * toplev.c (flag_loop_optimize, flag_crossjumping):
8931         New static variables.
8932         (rest_of_compilation): Conditionalize crossjumping and
8933         loop optimizer.
8934         (parse_options_and_default_flags): Default loop_optimize and
8935         crossjumping.
8936         (lang_independent_options): Add -fcrossjumping and -floop-optimize
8937         * invoke.texi (crossjumping, loop-optimize): Document.
8938
8939 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
8940
8941         * real.c (eiisneg): Move outside #ifdef NANS.
8942
8943 Fri Mar 22 12:08:36 CET 2002  Jan Hubicka  <jh@suse.cz>
8944
8945         * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
8946         frequencies match; avoid match on different loop depths.
8947         (try_crossjump_to_bb): Kill tests that no longer brings time
8948         savings.
8949         * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
8950         updating code.
8951         (split_edge): Likewise.
8952
8953         * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
8954         variable.
8955
8956         * Makefile.in (cfgrtl): Add insn-config.h depenendency.
8957         * cfgrtl.c: Include insn-config.h
8958         (split_block) Dirtify block in presence of conditional execution
8959
8960 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
8961
8962         * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
8963         * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
8964         (function_arg): Constify CUMULATIVE_ARGS.
8965         (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
8966         * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
8967         (UNITS_PER_DOUBLE): New macro.
8968         (SETUP_INCOMING_VARARGS): Define.  Use mips_setup_incoming_varargs.
8969         (CUMULATIVE_ARGS): Reformat.  Remove num_adjusts workaround and
8970         last_arg_fp field.  Replace arg_words and fp_arg_words with gp_regs,
8971         fp_regs and stack_words.
8972         (EABI_FLOAT_VARARGS_P): New macro.
8973         * config/mips/mips.c (struct mips_arg_info): New.
8974         (mips_arg_info): New function.
8975         (function_arg_advance): Use it.  Add adjustment instructions here
8976         rather than in function_arg.
8977         (function_arg): Constify CUMULATIVE_ARGS.  Use mips_arg_info.  Check
8978         for VOIDmode at the beginning of the function.
8979         (function_partial_nregs): Constify CUMULATIVE_ARGS.  Use mips_arg_info.
8980         (function_arg_pass_by_reference): Likewise.
8981         (mips_setup_incoming_varags): New, largely based on old abi64.h code.
8982         (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
8983         (mips_va_start): Likewise.  Use the new stack_words field of
8984         CUMULATIVE_ARGS to set up overflow area.  Reformat.
8985         (mips_va_arg): Test EABI_FLOAT_VARARGS_P.  Unify EABI handling of
8986         doubles and other types, aligning the overflow pointer for non-doubles
8987         too.  Remove some code duplication.  Replace hard-coded constants.
8988
8989 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
8990
8991         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
8992         (CLASS_UNITS): Undefine.
8993         (CLASS_MAX_NREGS): Use FP_INC.
8994         * config/mips/mips.c (compute_frame_size): Likewise.
8995         (override_options): Use FP_INC and UNITS_PER_FPVALUE.
8996
8997 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
8998
8999         * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
9000         prototype, and handle lexing numbers and identifiers.
9001         (parse_identifier): Update to new form of parse_slow.
9002         (parse_number): Fast path only, use parse_slow otherwise.
9003         (_cpp_lex_direct): Update calls to parse_number.
9004
9005 2002-03-21  DJ Delorie  <dj@redhat.com>
9006
9007         * bb-reorder.c (make_reorder_chain_1): Protect against
9008         when redundant edges are omitted.
9009         * predict.c (dump_prediction): Likewise.
9010
9011 2002-03-21  Richard Henderson  <rth@redhat.com>
9012
9013         PR target/5996
9014         * fixinc/inclhack.def (solaris_stdio_tag): New.
9015         * fixinc/fixincl.x: Regenerate.
9016
9017 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
9018
9019         PR c/5597
9020         * c-typeck.c (process_init_element): Flag non-static
9021         initialization of a flexible array member as illegal.
9022
9023 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
9024
9025         * config/rs6000/t-linux64: New.
9026         * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
9027         t-ppccomm.  Use t-rs6000 and t-linux64.
9028         (powerpc64-*-gnu* <tmake_file>): Likewise.
9029         * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
9030         * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
9031         * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
9032
9033 2002-03-21  Aldy Hernandez  <aldyh@redhat.com>
9034
9035         * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
9036         flag_really_no_inline instead of optimize == 0.
9037
9038         * c-objc-common.c (c_cannot_inline_tree_fn): Same.
9039
9040         * cp/tree.c (cp_cannot_inline_tree_fn): Same.
9041
9042         * flags.h (flag_really_no_inline): New.
9043
9044         * c-common.c (c_common_post_options): Initialize
9045         flag_really_no_inline.
9046
9047         * toplev.c (flag_really_no_inline): New.
9048
9049 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
9050
9051         * config/avr/avr.md (length): Fix length computation for
9052         conditional branches.
9053
9054 2002-03-21  Neil Booth  <neil@daikokuya.demon.co.uk>
9055
9056         * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
9057         sdbout.o, profile.o): Update.
9058         * c-common.c (c_common_nodes_and_builtins): Use pushdecl
9059         langhook.
9060         * c-common.h (gettags): Move here from tree.h.
9061         * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
9062         insert_block, getdecls, kept_level_p, global_bindings_p): New.
9063         * dbxout.c (dbxout_init): Use getdecls langhook.
9064         * expr.c (expand_expr): Use insert_block langhook.
9065         * fold-const.c: Include langhooks.h.
9066         (fold_range_test, fold_binary_op_with_conditional_arg,
9067         fold): Use global_bindings_p langhook.
9068         * integrate.c (expand_inline_function): Use insert_block langhook.
9069         * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
9070         LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
9071         LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
9072         LANG_HOOKS_GETDECLS): New.
9073         (LANG_HOOKS_INITIALIZER): Update.
9074         * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
9075         langhook.
9076         * langhooks.h (struct lang_hooks_for_decls): New.
9077         (struct lang_hooks): Update.
9078         * profile.c: Include langhooks.h.
9079         (output_func_start_profiler): Use new langhooks.
9080         * sdbout.c: Include langhooks.h.
9081         (sdbout_init, sdbout_finish): Use getdecls langhook.
9082         * stmt.c: Include langhooks.h.
9083         (expand_fixup, fixup_gotos): Use new langhooks.
9084         * stor-layout.c: Include langhooks.h.
9085         (variable_size): Use global_bindings_p langhook.
9086         * toplev.c (compile_file): Use getdecls langhook.
9087         * tree-inline.c (remap_block): Use insert_block langhook.
9088         * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
9089         insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
9090
9091 2002-03-21  Richard Henderson  <rth@redhat.com>
9092
9093         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
9094         constants in .data when -fpic.
9095
9096 2002-03-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9097
9098         * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
9099         where appropriate.
9100
9101 2002-03-21  Tom Tromey  <tromey@redhat.com>
9102
9103         * config/i386/sol2.h (ASM_QUAD): Undef.  Fixes PR bootstrap/5948.
9104
9105 Thu Mar 21 09:50:48 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9106
9107         * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
9108
9109         * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
9110
9111 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
9112             Richard Henderson  <rth@redhat.com>
9113
9114         PR c/5354
9115         * c-common.c (c_expand_expr): Preserve result of a statement
9116         expression if needed.
9117
9118 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
9119
9120         PR bootstrap/4195
9121         * genrecog.c (maybe_both_true_mode): Remove.
9122         (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
9123         * machmode.def (Pmode): Likewise.
9124
9125 Thu Mar 21 01:55:06 EST 2002  John Wehle  (john@feith.com)
9126
9127         * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
9128         (nonlocal_mentioned_p_1): New function.
9129         (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
9130         (nonlocal_set_p, nonlocal_set_p_1): Likewise.
9131         (mark_constant_function): Recognize pure functions.
9132         * rtl.h (global_reg_mentioned_p): New prototype.
9133         * rtlanal.c (global_reg_mentioned_p,
9134         global_reg_mentioned_p_1): New function.
9135
9136 2002-03-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9137
9138         * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
9139         UNIX assert.h.
9140         * fixinc/fixincl.x: Regenerate.
9141
9142 2002-03-20  Jason Merrill  <jason@redhat.com>
9143
9144         * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
9145
9146 2002-03-20  Michael Meissner  <meissner@redhat.com>
9147
9148         * doc/invoke.texi (Optimize Options): Document that -O2 sets
9149         -fstrict-aliasing.
9150
9151 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
9152
9153         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
9154         ".literal_position" directive before the constant pool.
9155
9156 2002-03-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9157
9158         * doc/contrib.texi (Contributors): Update Geoffrey Keating.
9159         Add Craig Rodrigues.
9160         Add Brad Lucier to testers.
9161
9162 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
9163
9164         PR target/4792
9165         * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
9166         to if_then_else.
9167         (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
9168         * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
9169         instead of insn_extract.
9170
9171 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
9172
9173         PR bootstrap/4192
9174         * config/fr30/fr30.md (jump): Remove clobber of fixed register.
9175
9176         * genemit.c (output_added_clobbers_hard_reg_p): Only output return
9177         stmt if some case has been output.
9178
9179 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
9180
9181         PR c/5972
9182         * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
9183         movsfcc_1, movdfcc_1): Add %O2.
9184         * config/i386/i386.c (print_operand): Handle %ON.
9185         Print . before float condition codes in Sun as cmov syntax.
9186         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
9187         * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
9188         no longer true.
9189
9190 2002-03-20  Philip Blundell  <pb@nexus.co.uk>
9191
9192         * config/arm/arm.c (arm_output_epilogue): Don't generate separate
9193         return instruction if PC was popped.
9194
9195 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
9196
9197         * config/xtensa/xtensa.md: Remove unused type attributes.
9198         (adddi_carry, subddi_carry): Change type attribute to "multi".
9199
9200 2002-03-19  Dale Johannesen  <dalej@apple.com>
9201
9202         PR optimization/5999, middle-end/5731
9203         * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
9204         multiplications by reciprocals.
9205
9206 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
9207
9208         * Makefile.in: Update.
9209         * c-common.c: Include langhooks.h.
9210         (inline_forbidden_p): Use new hook.
9211         * diagnostic.c: Include langhooks.h.
9212         (format_with_decl, announce_function,
9213         default_print_error_function): Use new hook.
9214         * dwarf2out.c (dwarf2_name): Use new hook.
9215         * function.c: Include langhooks.h.
9216         (init_function_start): Use new hook.
9217         * langhooks-def.h (lhd_decl_printable_name): New.
9218         (LANGHOOKS_DECL_PRINTABLE_NAME): New.
9219         (LANGHOOKS_INITIALIZER): Update.
9220         * langhooks.c (lhd_decl_printable_name): New.
9221         * langhooks.h (struct lang_hooks): New hook.
9222         * toplev.c (decl_name, decl_printable_name): Remove.
9223         (open_dump_file): Use new hook.
9224         (process_options): Remove old hook.
9225         * tree.h (decl_printable_name): Remove.
9226 objc:
9227         * objc-act.c (objc_init): Remove old hook.
9228         (objc_printable_name): Export.
9229         * objc-act.h (objc_printable_name): New.
9230         * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
9231
9232 2002-03-19  Jim Blandy  <jimb@redhat.com>
9233
9234         * c-lex.c (cb_file_change): Pass the #inclusion's line number to
9235         the start_source_file debug hook, not the current line number.
9236
9237 2002-03-19  Richard Henderson  <rth@redhat.com>
9238
9239         * flow.c (EH_USES): Provide default.
9240         (calculate_global_regs_live): Use it for EH edges and noreturn calls.
9241         * doc/tm.texi (EH_USES): New.
9242
9243         * config/ia64/ia64.c (ia64_eh_uses): New.
9244         * config/ia64/ia64-protos.h: Update.
9245         * config/ia64/ia64.h (EH_USES): New.
9246
9247 2002-03-19  Richard Henderson  <rth@redhat.com>
9248
9249         * varasm.c (output_constant_def): Fix stupid typo.
9250
9251 2002-03-19  Richard Henderson  <rth@redhat.com>
9252
9253         PR 5879
9254         * except.c (current_function_has_exception_handlers): New.
9255         * except.h: Declare it.
9256         * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
9257         Combine tests that disable all sibcalls for the function.
9258
9259 2002-03-19  Olivier Hainque  <hainque@act-europe.fr>
9260
9261         * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
9262         for INTEGER_CST.
9263
9264 2002-03-19  Richard Henderson  <rth@redhat.com>
9265
9266         PR 5977, 5991
9267         * config/ia64/ia64.c: Revert 2002-03-01 patch.
9268         * config/ia64/ia64.h (INIT_EXPANDERS): New.
9269
9270 2002-03-19  Jim Blandy  <jimb@redhat.com>
9271
9272         * cppmacro.c (cpp_macro_definition): Emit a space after the macro
9273         name, even if the replacement list contains no tokens, as required
9274         by Dwarf.
9275
9276 2002-03-19  Jason Merrill  <jason@redhat.com>
9277
9278         * varasm.c (globalize_decl): Get the name from the RTL, not
9279         DECL_ASSEMBLER_NAME.
9280
9281         * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
9282
9283 2002-03-19  Bob Wilson  <bob.wilson@acm.org>
9284
9285         * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
9286         subdi_carry): Define.
9287
9288 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
9289
9290         * config/rs6000/rs6000.c (rs6000_override_options): Only warn
9291         about -fpic/-fPIC if extra_warnings set.
9292
9293 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
9294
9295         * expr.c (expand_expr): Sign-extend CONST_INT generated from
9296         TREE_STRING_POINTER.
9297         * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
9298
9299 Tue Mar 19 14:12:32 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9300
9301         * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
9302         in favor of SP if FRAME_POINTER_REQUIRED is false.
9303
9304 2002-03-19  Lars Brinkhoff  <lars@nocrew.org>
9305
9306         * emit-rtl.c (gen_int_mode): New function.
9307         * rtl.h: Prototype for it.
9308         * combine.c (make_extraction, simplify_comparison), expmed.c
9309         (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
9310         (convert_modes, store_field), optabs.c (expand_fix),
9311         simplify-rtx.c (neg_const_int, simplify_unary_real),
9312
9313         * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
9314         Use it instead of GEN_INT (trunc_int_for_mode (...)).
9315
9316 2002-03-19  Jakub Jelinek  <jakub@redhat.com>
9317
9318         PR c/5656
9319         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
9320         convert_parm_for_inlining.
9321         * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
9322         Define.
9323         * langhooks-def.h: Likewise.
9324         * objc/objc-lang.c: Likewise.
9325         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
9326         function.
9327         * tree-inline.c (initialize_inlined_parameters):
9328         Call convert_parm_for_inlining lang hook if needed.
9329         * c-typeck.c (c_convert_parm_for_inlining): New function.
9330         * c-tree.h (c_convert_parm_for_inlining): Add prototype.
9331
9332 2002-03-18  Mark Mitchell  <mark@codesourcery.com>
9333
9334         * calls.c (precompute_arguments): Do not assume that temporaries
9335         can be destroyed after expanding the argument.
9336         (expand_call): Likewise.
9337
9338 2002-03-15  Eric Christopher  <echristo@redhat.com>
9339
9340         * config/mips/mips.md (movdf_internal2): Add two new move constraints.
9341         Fix register preference on last change.
9342         * config/mips/mips.c (mips_return_in_memory): New function.
9343         * config/mips/mips.h (RETURN_IN_MEMORY): Use.
9344         * config/mips/mips-protos.h: Declare.
9345         * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
9346         * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
9347
9348 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
9349
9350         * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
9351         a register too.
9352         (anddi3, iorsi3): Likewise.
9353
9354         * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
9355         use %gprel for symbols that are going to be placed in linkonce
9356         sections.
9357
9358         * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
9359         RETURN_ADDRESS_POINTER_REGNUM to $ra.
9360         (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
9361         not needed.  Disregard leaf_function_p().
9362         (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
9363         mips16 frame pointer.
9364         * config/mips/mips.md (store ra): Only to small SP offsets.
9365         2001-08-22  Graham Stott  <grahams@redhat.com>
9366         * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
9367         return a REG rtx for the return address register.
9368
9369 2002-03-18  Bob Wilson  <bob.wilson@acm.org>
9370
9371         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
9372         constant-pool addresses as "mode-dependent".
9373         (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
9374
9375 2002-03-18  Jakub Jelinek  <jakub@redhat.com>
9376
9377         PR target/5740
9378         * expr.c (emit_group_load): Use extract_bit_field if
9379         needed for CONCAT arguments.
9380
9381 2002-03-18  Richard Earnshaw  <rearnsha@arm.com>
9382
9383         PR target/4863
9384         * arm.md (tablejump): Make this a define_expand.  For PIC add the
9385         offset to the base of the table.
9386         (thumb_tablejump): Matcher for Thumb tablejump insn.
9387         * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
9388         as the difference of two labels.
9389         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9390         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
9391         tables in the code.
9392         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
9393         * arm.c (get_jump_table_size): If the table is not in the text
9394         section, return zero.
9395
9396 2002-03-18  Bernd Schmidt  <bernds@redhat.com>
9397
9398         * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
9399         of gen_rtx_SUBREG.
9400         (arm_reload_out_hi): Use gen_lowpart instead of
9401         gen_rtx_SUBREG to access QImode components.
9402         * config/arm/arm.md: Disable zero_extend split for QImode
9403         subregs in BIG_ENDIAN mode.
9404         (storehi_bigend): Match use of least significant byte.
9405         (storeinthi): Remove extraneous SUBREG.
9406         Add missing construction of operands[2].
9407         (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
9408         (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
9409         Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
9410
9411 2002-03-18  Aldy Hernandez  <aldyh@redhat.com>
9412
9413         * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
9414         any_operand.
9415
9416 2002-03-17  Richard Henderson  <rth@redhat.com>
9417
9418         * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
9419         explicitly.
9420
9421 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
9422
9423         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
9424         (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
9425
9426 2002-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9427
9428         * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
9429
9430         * predict.c (estimate_bb_frequencies): Delete unused variables.
9431
9432 2002-03-17  Richard Henderson  <rth@redhat.com>
9433
9434         * config/ia64/ia64.c (ia64_attribute_table): Move before
9435         targetm definition.  Make static.
9436
9437 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
9438
9439         * c-common.h (yyparse, c_common_parse_file): New.
9440         * c-lang.c: Include c-common.h.
9441         (LANG_HOOKS_PARSE_FILE): Redefine.
9442         * c-lex.c: Include c-common.h.
9443         (yyparse): Rename c_common_parse_file.  Call yyparse.
9444         * c-parse.in (yyparse): Remove macro.
9445         * c-tree.h (yyparse_1): Remove.
9446         * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
9447         (LANG_HOOKS_INITIALIZER): Update.
9448         * langhooks.h (struct lang_hoooks): New hook parse_file.
9449         * toplev.c (compile_file): Use parse_file hook.
9450         * tree.h (yyparse): Remove.
9451         * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
9452
9453 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
9454
9455         * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
9456         float_truncate, not fix.
9457         ("*truncdfsf2_real"): Ditto.
9458         ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
9459
9460         * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
9461
9462 2002-03-16  Alexandre Oliva  <aoliva@redhat.com>
9463
9464         * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
9465         (s8), but rather HARD_FRAME_POINTER_REGNUM.  Add parentheses
9466         where appropriate.  Make the second reference to
9467         leaf_function_p a function call, as intended.  Reindented.
9468
9469         * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
9470         * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
9471
9472         * config/mips/mips.md (addsi3, adddi3): Use scratch register to
9473         add register to non-constant into sp.
9474
9475         * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
9476         * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
9477         (mips16_gp_pseudo_rtx): Lose.
9478         (INIT_EXPANDERS): Deleted.
9479         * config/mips/mips.c (mips_init_machine_status): New.
9480         (mips_free_machine_status): New.
9481         (mips_mark_machine_status): New.
9482         (override_options): Set them.
9483         (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
9484         (struct machine_function): ... new.  Replaced all references.
9485         (mips_add_gc_roots): Don't mark them.
9486         (embedded_pic_fnaddr_reg): New, extracted from...
9487         (embedded_pic_offset): ... here.
9488         * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
9489         (movsi): Likewise.
9490
9491 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
9492
9493         * cppinit.c: Revert -MD removal.
9494
9495 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9496
9497         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
9498         soft registers by default for 68HC12.
9499         (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
9500         when compiling with -fomit-frame-pointer.
9501         (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
9502         (expand_epilogue): Likewise.
9503         (m68hc11_gen_rotate): Use exg when rotating by 8.
9504
9505 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9506
9507         * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
9508         * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
9509         (splits): Remove unused add splits.
9510         ("*addhi3_68hc12"): Tune constraints.
9511         ("addhi_sp"): Try to use X instead of Y in all cases and if the
9512         constant fits in 8-bits and D is dead use abx/aby instructions.
9513         ("*addhi3"): Remove extern declaration of ix_reg.
9514         ("*subsi3"): Optimize and provide new split.
9515         ("subhi3"): Cleanup.
9516         ("*subhi3_sp"): Avoid saving X if we know it is dead.
9517         (arith splits): For 68hc12 save the address register on the stack
9518         and do the arithmetic operation with a pop.
9519
9520 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9521
9522         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
9523         allocating QImode in address registers.
9524         ("*movqi_m68hc11"): Likewise.
9525
9526 Sat Mar 16 12:57:28 CET 2002  Jan HUbicka  <jh@suse.cz>
9527
9528         * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
9529
9530 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
9531
9532         * cppinit.c (print_help): Display -MD and -MMD.
9533         Don't display usage string.  Update assertion syntax and
9534         typo.
9535         (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
9536         (cpp_handle_option): Update.
9537
9538 2002-03-15  Chris Demetriou  <cgd@broadcom.com>
9539
9540         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
9541         MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
9542         and define it so that regardless of target CPU size,
9543         __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
9544         of "int" rather than "long."
9545
9546 2002-03-15  Richard Henderson  <rth@redhat.com>
9547
9548         * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
9549         size as a tree.
9550
9551 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9552
9553         * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
9554         ("tstqi" split): Avoid using memory for tstqi on address register.
9555         (splits): Remove constraints.
9556         ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
9557         ("cmpdf", "cmpsf"): Remove since not used.
9558         ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
9559         (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
9560
9561 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9562
9563         * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
9564         ("neghi2"): Tighten constraints.
9565         ("one_cmplsi2"): Optimize and simplify split.
9566         * config/m68hc11/larith.asm (__negsi2): Likewise for library.
9567
9568 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9569
9570         * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
9571         and split of AND operation to clear the upper bits.
9572         ("*logicalsi3_zextqi"): Likewise.
9573         ("*logicallhi3_zexthi_ashift8"): Likewise.
9574         ("*logicalsi3_silshr16"): Likewise.
9575         ("logicalsi3_silshl16"): Likewise.
9576         ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
9577
9578 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9579
9580         * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
9581         (m68hc11_indirect_p): New function.
9582         (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
9583         (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
9584         TARGET_M6812.
9585         (asm_print_register): Likewise.
9586         * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
9587         (m68hc11_indirect_p): Declare.
9588         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
9589         (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
9590         (TARGET_SWITCHES): New option -mrelax.
9591         * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
9592         destination.
9593         ("iorsi3", "xorsi3"): Likewise.
9594         ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
9595         ("*andhi3_mem"): New to handle destination in memory with bclr
9596         and a scratch register.
9597         ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
9598         ("*andhi3_const"): New when operand2 is constant.
9599         ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
9600         ("*andhi3_gen"): Cleanup of the old "andhi3".
9601         ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
9602         ("xorqi3"): Update constraints.
9603
9604 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9605
9606         * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
9607         for reg_equiv_memory_loc when the operand is a register that does
9608         not get a hard register (stack location).
9609         (tst_operand): After reload, accept all memory operand.
9610         (symbolic_memory_operand): Fix detection of symbolic references.
9611         * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
9612         accept symbols and any constant.
9613
9614 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9615
9616         * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
9617         note on the insn that sets the soft frame register.
9618         (must_parenthesize): ix and iy are also reserved names.
9619         (print_operand_address): One more place where parenthesis are required
9620         to avoid confusion with register names.
9621         (m68hc11_gen_movhi): Allow push of stack pointer.
9622         (m68hc11_check_z_replacement): Fix handling of parallel with a
9623         clobber.
9624         (m68hc11_z_replacement): Must update the REG_INC notes to tell what
9625         the replacement register is.
9626         * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
9627         and D8_REGS classes.
9628         (MODES_TIEABLE_P): All modes are tieable except QImode.
9629
9630 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9631
9632         * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
9633         (___subdi3): Likewise.
9634         (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
9635         (__map_data_section): Optimize 68hc11 case.
9636
9637 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9638
9639         * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
9640         than a shift to avoid adding a register with itself.
9641         (m68hc11_memory_move_cost): Take into account NO_REGS.
9642         (m68hc11_register_move_cost): Update and use memory move cost
9643         for soft registers.
9644         (m68hc11_address_cost): Make cost of valid offset not 0 so that
9645         it gives more opportunities to cse to optimize.
9646         * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
9647         * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
9648
9649 2002-03-15  Mark Mitchell  <mark@codesourcery.com>
9650
9651         * c-common.c (statement_code_p): Handle CLEANUP_STMT.
9652         * c-common.def (CLEANUP_STMT): New tree node.
9653         * c-common.h (CLEANUP_DECL): New macro.
9654         (CLEANUP_EXPR): Likewise.
9655         * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
9656         * expr.c (expand_expr): Tidy.
9657         * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
9658         * tree-inline.c (initialize_inlined_parameters): Clean up
9659         new local variables.
9660
9661 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
9662
9663         PR bootstrap/4128
9664         * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
9665         before movrXX only, use reg_overlap_mentioned_p.
9666         Only special case NE if just one insn can be generated.
9667
9668 2002-03-15  Jason Merrill  <jason@redhat.com>
9669
9670         * varasm.c (assemble_variable): Call resolve_unique_section before
9671         checking DECL_SECTION_NAME.  Use zeros for a decl with DECL_INITIAL
9672         of error_mark_node.
9673
9674 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
9675
9676         PR target/5170
9677         * arm.md (split pattern for thumb shiftable immediates): Add comment
9678         explaining non-obvious test.
9679
9680 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
9681
9682         PR target/5712
9683         * arm.md (movaddr, movaddr_insn): Delete.
9684
9685 2002-03-15  Jason Merrill  <jason@redhat.com>
9686
9687         * toplev.c (wrapup_global_declarations): Clarify variable handling.
9688         -fkeep-static-consts doesn't apply to comdats.
9689
9690 2002-03-14  Richard Henderson  <rth@redhat.com>
9691
9692         * c-decl.c: Include c-pragma.h.
9693         (start_decl, start_function): Invoke maybe_apply_pragma_weak.
9694         (finish_function): Tidy.
9695         * c-pragma.c: Include c-common.h.
9696         (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
9697         (handle_pragma_weak): Use them.
9698         (init_pragma): Register pending_weaks.
9699         * c-pragma.h (maybe_apply_pragma_weak): Declare.
9700         * print-tree.c (print_node): Print DECL_WEAK.
9701         * varasm.c (mark_weak_decls): Remove.
9702         (remove_from_pending_weak_list): Remove.
9703         (add_weak): Remove.
9704         (asm_emit_uninitialised): Call globalize_decl for weak commons.
9705         (weak_decls): Make a tree_list.
9706         (declare_weak): Cons weak_decls directly.
9707         (globalize_decl): Remove weak_decls elements directly.
9708         (weak_finish): Simplify weak_decls walk.  Don't weaken unused
9709         symbols.  Don't pretend to handle aliases.
9710         (init_varasm_once): Update weak_decls registry.
9711         * Makefile.in: Update dependencies.
9712
9713 2002-03-14  Richard Henderson  <rth@redhat.com>
9714
9715         PR target/5312
9716         * config/ia64/ia64.c: Include tm_p.h last.
9717         (gen_nop_type): Remove duplicate definition.
9718         (cycle_end_fill_slots): Set sched_data for second L slot.
9719         (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
9720         (nop_cycles_until): Fix typos.
9721
9722 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
9723
9724         PR optimization/5891
9725         * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
9726
9727 2002-03-14  David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
9728
9729         * config/ia64/unwind-ia64.c: Handle copy_state and label_state
9730           descriptors correctly.
9731
9732 2002-03-14  Michael Meissner  <meissner@redhat.com>
9733
9734         * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
9735         100, allowing MAX_UNROLLED_INSNS to be overridden.
9736
9737         * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
9738         --param.
9739
9740         * unroll.c (params.h): Include.
9741         (MAX_UNROLLED_INSNS): Delete, now in params.h.
9742
9743         * doc/invoke.texi (--param max-unroll-insns): Document.
9744
9745         * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
9746
9747 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
9748
9749         * arm.md: Fix warnings about constraints in peepholes and splits.
9750
9751 2002-03-14  Zack Weinberg  <zack@codesourcery.com>
9752
9753         * cpphash.h (struct lexer_state): Remove line_extension member.
9754         * cpplib.c (dequote_string, do_linemarker): New functions.
9755         (linemarker_dir): New data object.
9756         (DIRECTIVE_TABLE): No longer need to interpret #line in
9757         preprocessed source.  Delete obsolete comment about return
9758         values of handlers.
9759         (end_directive, directive_diagnostics, _cpp_handle_directive):
9760         Don't muck with line_extension.
9761         (directive_diagnostics): No need to issue warnings for
9762         linemarkers here.
9763         (_cpp_handle_directive): Issue warnings for linemarkers here,
9764         when appropriate.  Dispatch linemarkers to do_linemarker, not
9765         do_line.
9766         (do_line): Code to handle linemarkers split out to do_linemarker.
9767         Convert escape sequences in filename argument, both places.
9768
9769         * cppmacro.c (quote_string): Rename cpp_quote_string and
9770         export.  All callers changed.
9771         * cpplib.h (cpp_quote_string): Prototype.
9772         * cppmain.c (print_line): Call cpp_quote_string on to_file
9773         before printing it.
9774
9775         * doc/cpp.texi: Document that escapes are now interpreted in
9776         #line and in linemarkers, and that non-printing characters are
9777         converted to octal escapes when linemarkers are generated.
9778
9779 Thu Mar 14 19:04:29 CET 2002  Jan Hubicka  <jh@suse.cz>
9780
9781         * emit-rtl.c (try_split): Use delete_insns.
9782         * recog.c (split_all_insns): Fix terminating condition.
9783
9784 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
9785             Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
9786
9787         PR target/5828
9788         * arm.c (arm_output_epilogue): Fix floating-point register save
9789         adjustment when using a frame pointer.
9790
9791 2002-03-14  Richard Sandiford  <rsandifo@redhat.com>
9792
9793         * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
9794         * config/mips/mips.c (compute_frame_size): Retrofit them here.
9795         (save_restore_insns, mips_expand_epilogue): And here.
9796         (build_mips16_call_stub): And here.
9797         (mips_function_value): Use the new macros to decide whether a single
9798         or complex float can be returned in floating-point registers.  Return
9799         a parallel rtx in the complex case.
9800
9801 Thu Mar 14 11:03:12 CET 2002  Jan Hubicka  <jh@suse.cz>
9802
9803         * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
9804         call after liveness analysis.
9805
9806         * recog.c (split_insn): Use delete_insn_and_edges.
9807
9808         * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
9809         instructions to have branch prediction notes.
9810         * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
9811
9812 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
9813
9814         * configure.in: Don't pass -Wno-long-long to a ADA compiler
9815         that doesn't support it.
9816         * configure: Regenerate.
9817
9818 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
9819
9820         PR target/5626
9821         * config/sparc/sparc.md (normal_branch, inverted_branch,
9822         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
9823         inverted_fp_branch): Adjust calls to output_cbranch.
9824         Set length attribute.
9825         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
9826         output_v9branch.  Set length attribute.
9827         * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
9828         predicates.
9829         (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
9830         (output_cbranch): Likewise.  Handle far branches.
9831         (output_v9branch): Handle far branches.
9832         * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
9833         Adjust prototypes.
9834         * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
9835         noov_compare64_op predicates.
9836
9837 2002-03-13  Jason Merrill  <jason@redhat.com>
9838
9839         * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
9840         into the function and constify it.
9841         * gthr-dce.h, gthr-solaris.h: Likewise.
9842
9843 2002-03-13  David Edelsohn  <edelsohn@gnu.org>
9844
9845         * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
9846         * config/rs6000/rs6000.c (rs6000_va_arg): Use
9847         std_expand_builtin_va_arg if not ABI_V4.
9848
9849 2002-03-13  Jason Merrill  <jason@redhat.com>
9850
9851         * varasm.c (globalize_decl): New fn.
9852         (assemble_start_function): Use it.
9853         (asm_emit_uninitialized): Use it.
9854         (assemble_alias): Use it.
9855         (assemble_variable): Use it.
9856
9857 2002-03-13  Hans-Peter Nilsson  <hp@axis.com>
9858
9859         * config/cris/cris.c (cris_target_asm_function_prologue): Revert
9860         2002-03-12 internal visibility change.
9861         (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
9862         visibility into SYMBOL_REF_FLAG.
9863
9864 2002-03-13  Ulrich Weigand  <uweigand@de.ibm.com>
9865
9866         * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
9867         VOIDmode operand.  Add compile-time optimization for constant results.
9868
9869 2002-03-12  Jason Merrill  <jason@redhat.com>
9870
9871         * c-typeck.c (convert_for_assignment): Don't allow conversions
9872         between pointers and references.  Only allow lvalues to convert to
9873         reference.
9874
9875 2002-03-13  Hartmut Penner  <hpenner@de.ibm.com>
9876
9877         * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
9878         before prologue, to avoid scheduling problems.
9879
9880 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
9881
9882         * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
9883         (ELIMINABLE_REGS): Add sfp->sp.
9884         (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
9885
9886 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
9887
9888         PR optimization/5892
9889         * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
9890
9891 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
9892
9893         * loop.c (basic_induction_var): Don't call convert_modes if mode
9894         classes are different.
9895
9896 2002-03-12  Richard Henderson  <rth@redhat.com>
9897
9898         PR optimization/5901
9899         * function.c (reposition_prologue_and_epilogue_notes): Position
9900         the markers after/before the last/first insn not deleted.
9901
9902 2002-03-12  Richard Henderson  <rth@redhat.com>
9903
9904         PR optimization/5878
9905         * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
9906         config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
9907         (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
9908
9909         * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
9910         config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
9911         PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
9912
9913         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
9914         * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
9915         (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
9916         also.  Don't set it if not flag_pic.
9917         * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
9918         to be INVALID_REGNUM when not used.
9919
9920 2002-03-13  Aldy Hernandez  <aldyh@redhat.com>
9921
9922         * expmed.c (store_bit_field): Reset alias set for memory.
9923         (extract_bit_field): Same.
9924
9925 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9926
9927         * c-common.c (c_tree_code_type, c_tree_code_length,
9928         c_tree_code_name, add_c_tree_codes): Delete.
9929         * c-common.h (add_c_tree_codes): Delete.
9930         * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
9931         Define.
9932         * c-objc-common.c (c_objc_common_init): Don't call
9933         add_c_tree_codes, instead set lang_unsafe_for_reeval.
9934         * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
9935         objc_tree_code_name, add_objc_tree_codes): Delete.
9936         (objc_init): Don't call add_objc_tree_codes.
9937         * objc/objc-lang.c (tree_code_type, tree_code_length,
9938         tree_code_name): Define.
9939         * toplev.c (lang_independent_init): Don't set
9940         tree_code_length[IDENTIFIER_NODE].
9941         * tree.c (tree_code_type, tree_code_length, tree_code_name):
9942         Delete definitions, moved to language front-ends.
9943         * tree.def (IDENTIFIER_NODE): Hardwire the length.
9944         * tree.h (tree_code_type, tree_code_length, tree_code_name):
9945         Const-ify.
9946         (tree_code_length): Change type to unsigned char.
9947
9948 2002-03-12  Richard Henderson  <rth@redhat.com>
9949
9950         * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
9951         internal visibility change.
9952
9953 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
9954
9955         * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
9956         validize_mem() instead of change_address to avoid clobbering
9957         memory attributes.
9958
9959 2002-03-12  Neil Booth  <neil@daikokuya.demon.co.uk>
9960
9961         * c-lex.h (position_after_whitespace): Remove.
9962
9963 2002-03-12  Jakub Jelinek  <jakub@redhat.com>
9964
9965         * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
9966         (lex_string): Use unsigned char pointers.
9967
9968 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
9969
9970         * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
9971         is not a valid memory_operand.
9972
9973 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
9974
9975         * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
9976         * config/xtensa/lib1funcs.asm: Fix copyright to include
9977         special case for libgcc files.
9978         (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
9979         (__divsi3): Likewise.
9980         (__umodsi3): Likewise.
9981         (__modsi3): Likewise.
9982         * config/xtensa/lib2funcs.S: Fix copyright to include
9983         special case for libgcc files.
9984
9985 2002-03-12  Tom Rix  <trix@redhat.com>
9986
9987         * collect2.c (resolve_lib_name): Move outside of
9988         OBJECT_FORMAT_COFF ifdef.
9989         (ignore_library): Same.
9990
9991 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
9992
9993         * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
9994
9995 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
9996
9997         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
9998         to function_section before writing out the constant pool.
9999
10000 2002-03-12  David Edelsohn  <edelsohn@gnu.org>
10001
10002         * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
10003         zero_constant.
10004         * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
10005
10006 2002-03-12  Alan Modra  <amodra@bigpond.net.au>
10007
10008         * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
10009         (adddi3): Likewise.
10010         (movdf): Likewise.
10011         (movdi): Likewise.
10012         (cmpsi splitter): Likewise.
10013         (modsi3): Fail if <= 0.
10014         * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
10015         redundant test when HOST_BITS_PER_WIDE_INT != 32.
10016         (reg_or_sub_cint64_operand): Likewise.
10017         (num_insns_constant_wide): Optimize sign extension.
10018         (rs6000_legitimize_address): Likewise.
10019
10020 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
10021
10022         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
10023         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
10024
10025 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
10026
10027         * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
10028         address calculation.
10029
10030 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
10031
10032         * config/s390/s390.md (reload_insi, reload_indi): Change mode of
10033         scratch register to DImode / TImode.
10034         config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
10035         register used does not overlap the target.
10036
10037 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10038
10039         * Makefile.in (debug.o): Depend on debug.h.
10040         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
10041         * debug.c (do_nothing_debug_hooks): Likewise.
10042         * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
10043         sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
10044         dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
10045         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
10046         * dwarfout.c (dwarf_debug_hooks): Likewise.
10047         * integrate.c (output_inline_function): Likewise.
10048         * objc/objc-act.c (synth_module_prologue): Likewise.
10049         * sdbout.c (sdb_debug_hooks): Likewise.
10050         * toplev.c (debug_hooks): Likewise.
10051         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
10052
10053 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10054
10055         * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
10056         dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
10057         m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
10058         ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
10059         v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
10060         * defaults.h (POINTER_SIZE): Define.
10061         * doc/tm.texi (POINTER_SIZE): Document default.
10062
10063 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10064
10065         * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
10066
10067 2002-03-11  Richard Henderson  <rth@redhat.com>
10068
10069         * toplev.c (rest_of_compilation): Call purge_all_dead_edges
10070         if rebuild_label_notes_after_reload.
10071
10072 2002-03-12  Hans-Peter Nilsson  <hp@axis.com>
10073
10074         * config/cris/cris.c (cris_target_asm_function_prologue):  Do not
10075         emit pic register load if "internal" visibility.
10076         (cris_print_operand): Avoid traditional-warning for 0xffffffff.
10077         (cris_expand_builtin_va_arg): Do all computations on trees.
10078
10079 2002-03-11  Richard Henderson  <rth@redhat.com>
10080
10081         * rtlanal.c: Include recog.h.
10082         (keep_with_call_p): Fix thinko.
10083         * Makefile.in (rtlanal.o): Update dependencies.
10084
10085 2002-03-11  Chris Meyer  <cmeyer@gatan.com>
10086
10087         * genflags.c (gen_insn): Use IS_VSPACE.
10088         * genoutput.c (output_insn_data): Likewise.
10089         (process_template): Likewise.
10090
10091 2002-03-11  Richard Henderson  <rth@redhat.com>
10092
10093         * toplev.c (rest_of_compilation): Don't compile if we've had errors.
10094
10095 2002-03-11  Neil Booth  <neil@daikokuya.demon.co.uk>
10096
10097         * Makefile.in: Update.
10098         * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
10099         Update documentation.
10100         * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
10101         * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
10102
10103 2002-03-11  Zack Weinberg  <zack@codesourcery.com>
10104
10105         * Makefile.in: Give texi2pod its input file as a command line
10106         argument, not on stdin.
10107
10108 2002-03-11  Dan Nicolaescu  <dann@ics.uci.edu>
10109             Daniel Berlin  <dan@dberlin.org>
10110
10111         C++ alias analysis improvement.
10112         * alias.c (record_component_aliases): Record aliases for base
10113         classes too.
10114
10115 2002-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
10116
10117         * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
10118
10119 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
10120
10121         * toplev.c (vms_fopen): Remove, not needed.
10122
10123         * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
10124
10125         * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
10126
10127         * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
10128         for FP, already done later.
10129
10130         * toplev.c (debug_args): Add entry for VMS_DEBUG.
10131         * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
10132
10133 2002-03-11  Richard Sandiford  <rsandifo@redhat.com>
10134
10135         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
10136         (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
10137         LARGEST_EXPONENT_IS_NORMAL for the given mode.
10138         (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
10139         * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
10140         (ediv, emul, eldexp, esqrt): Likewise.
10141         (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
10142         (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
10143         (saturate): New function.
10144         (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
10145         (make_nan): Use a saturation value instead of a NaN if
10146         LARGEST_EXPONENT_IS_NORMAL.  Warn when this happens.
10147         * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
10148         inputs if LARGEST_EXPONENT_IS_NORMAL.  Represent subnormals as
10149         zero if NO_DENORMALS.  Only round to nearest if !ROUND_TOWARDS_ZERO.
10150         (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
10151         (_fpmul_parts, _fpdiv_parts): Only round to nearest if
10152         !ROUND_TOWARDS_ZERO.
10153         * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
10154         (ROUND_TOWARDS_ZERO): Document.
10155
10156 2002-03-11  Andreas Jaeger  <aj@suse.de>
10157
10158         * cfg.c (dump_flow_info): Remove unused variable.
10159
10160 2002-03-11  Hans-Peter Nilsson  <hp@bitrange.com>
10161
10162         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
10163         computations on trees.
10164
10165 2002-03-10  Richard Henderson  <rth@redhat.com>
10166
10167         PR 5693:
10168         * reload.c (copy_replacements_1): New.
10169         (copy_replacements): Use it to recurse through the rtx.
10170
10171 2002-03-10  Richard Henderson  <rth@redhat.com>
10172
10173         * loop.c (strength_reduce): Compute number of iterations as
10174         unsigned HOST_WIDE_INT.
10175
10176 2002-03-10  Richard Henderson  <rth@redhat.com>
10177
10178         * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
10179         to move away from the end of the block.
10180
10181 2002-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
10182
10183         PR preprocessor/5899
10184         * cppinit.c (init_dependency_output): Don't ignore -dM etc.
10185
10186 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10187
10188         * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
10189
10190         * attribs.c (decl_attributes): Fix signed/unsigned warning.
10191
10192 2002-03-10  Hans-Peter Nilsson  <hp@bitrange.com>
10193
10194         * config/mmix/mmix.c: Improve comments.
10195         (mmix_target_asm_function_prologue): Drop variable
10196         empty_stack_frame.  Don't allocate unused slot above fp.
10197         (mmix_target_asm_function_epilogue): Mirror prologue changes.
10198         * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
10199         brace in first column.
10200         (enum reg_class): Ditto.
10201         (FIRST_PARM_OFFSET): Now 0.
10202         (USER_LABEL_PREFIX): Remove #if 0:d definition.
10203
10204 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10205
10206         * combine.c (make_extraction): Fix error in last change.
10207
10208 2002-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10209
10210         * c4x.c (c4x_fp_reglist): Const-ify.
10211         * cris.c (cris_print_operand): Likewise.
10212         * i386.c (ix86_va_arg): Likewise.
10213         * ia64/unwind-ia64.c (unw_decode_table): Likewise.
10214         * m32r.c (m32r_hard_regno_mode_ok): Likewise.
10215         * m32r.h (m32r_hard_regno_mode_ok): Likewise.
10216         * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
10217         * mcore.h (regno_reg_class): Likewise.
10218         * mips.c (gen_int_relational): Likewise.
10219         * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
10220         * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
10221         * pdp11.c (move_costs): Likewise.
10222         * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
10223         * s390.c (s390_branch_condition_mnemonic, regclass_map):
10224         Likewise.
10225         * s390.h (regclass_map): Likewise.
10226         * sh.c (shift_amounts): Likewise.
10227         * sh.md (rotlsi3): Likewise.
10228
10229 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
10230
10231         * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
10232         (ne0+5): Use new clobber to generate proper shift pattern.
10233         Patch by Michael Matz <matz@kde.org>.
10234
10235 2002-03-09  Andreas Schwab  <schwab@suse.de>
10236
10237         * gcc.c (validate_all_switches): Also handle `%W{...}'.
10238
10239 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
10240
10241         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
10242
10243 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
10244
10245         PR middle-end/5877
10246         * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
10247         even for non-representable constants.
10248
10249 Sat Mar  9 07:20:01 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10250
10251         * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
10252         * function.c (fixup_var_refs): Add MAY_SHARE parameter.
10253         (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
10254         (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
10255         (pop_function_context): Compute MAY_SHARE parameter for
10256         fixup_var_refs.
10257         (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
10258         (gen_mem_addressof): Call fixup_var_refs with new parm.
10259
10260         * combine.c (make_extraction): Don't make extension of CONST_INT.
10261
10262 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
10263
10264         * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
10265         in o32 and o64 ABIs.
10266         * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
10267         but getting fixed-size structs passed in registers regardless of
10268         padding in o32 and o64 ABIs.
10269
10270         * config/mips/mips.c (mips_va_arg): Apply big-endianness address
10271         offset before loading address of argument passed by transparent
10272         reference.
10273
10274 2002-03-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10275
10276         * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
10277
10278 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
10279
10280         * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
10281         marker such that registers after it are saved.
10282
10283 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10284
10285         * sparc.c (arith_4096_operand): Fix error in last change.
10286
10287 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
10288
10289         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
10290         defaults for MEABI.
10291
10292 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
10293
10294         * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
10295         vectors.
10296
10297 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
10298
10299         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
10300
10301 Fri Mar  8 21:27:49 CET 2002  Jan Hubicka  <jh@suse.cz>
10302
10303         * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
10304         removed; fix return value.
10305         * combine.c (combine_instructions): Dirtify blocks where we failed to
10306         update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
10307         * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
10308
10309 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10310
10311         * gcse.c (insert_insn_end_bb): Fix typo in last change.
10312
10313 Fri Mar  8 21:08:52 CET 2002  Jan Hubicka  <jh@suse.cz>
10314
10315         * recog.c (peephole2_optimize): Re-distribute EH edges.
10316
10317 2002-03-08  Neil Booth  <neil@daikokuya.demon.co.uk>
10318
10319         * expr.c (expand_expr): Use unsave lang hook.
10320         * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
10321         (LANG_HOOKS_INITIALIZER): Update.
10322         * langhooks.h (struct lang_hooks): New hook unsave.
10323         * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
10324         (unsave_expr_1): Remove unused lang_unsave_expr_now.
10325         (unsave_expr_now_r): Rename lhd_unsave.  Update. Return input.
10326         (unsave_expr_now): Remove.
10327         * tree.h (unsave_expr_now, lang_unsave,
10328         lang_unsave_expr_now): Remove.
10329         (lhd_unsave): New.
10330
10331 2002-03-08  Andreas Jaeger  <aj@suse.de>
10332
10333         * flow.c (propagate_block_delete_insn): Remove unused variable.
10334
10335 2002-03-08  Kazu Hirata  <kazu@hxi.com>
10336
10337         * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
10338         insn length for memory load/store.
10339
10340 2002-03-08  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10341
10342         * doc/install.texi (--with-libiconv-prefix): Document.
10343
10344 2002-03-08  Michael Y. Brukman  <myb2@cornell.edu>
10345
10346         * doc/sourcebuild.texi: Fix typo.
10347
10348 2002-03-08  Jakub Jelinek  <jakub@redhat.com>
10349
10350         PR c/3711
10351         * builtins.c (std_expand_builtin_va_arg): Do all computations on
10352         trees.
10353
10354 Fri Mar  8 06:48:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10355
10356         * rtl.c (copy_most_rtx): Move from here ...
10357         * emit-rtl.c (copy_most_rtx): ... to here.
10358
10359 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
10360
10361         * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
10362         SUBTARGET_CPP_SIZE_SPEC.
10363         * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
10364
10365         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
10366
10367 2002-03-07  Matt Hiller  <hiller@redhat.com>
10368
10369         * gensupport.c (first_dir_md_include): Renamed from include;
10370         change all references.
10371         (last_dir_md_include): Renamed from last_include; change all
10372         references.
10373         (init_md_reader): Unconditionally initialize base_dir whether or
10374         not filename is a relative path.
10375
10376 2002-03-07  Alexandre Oliva  <aoliva@redhat.com>
10377
10378         * config/fp-bit.c (_unord_f2): Compile it in even if
10379         US_SOFTWARE_GOFAST is enabled.
10380
10381         * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
10382         NULL_RTX.  Set all HFmode operations as NULL_RTX.
10383         * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
10384         NULL_RTX, try reversing the comparison and the operands.
10385
10386 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
10387
10388         * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
10389         genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
10390         and MATCH_OP_DUP.
10391
10392 Thu Mar  7 16:54:10 CET 2002  Jan Hubicka  <jh@suse.cz>
10393
10394         * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
10395
10396 Thu Mar  7 16:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
10397
10398         * basic-block.h (fixup_abnormal_edges): Declare.
10399         * reload1.c (fixup_abnormal_edges): New function.
10400         * reg-stack.c (convert_regs): Use it.
10401
10402         * gcse.c (insert_insn_end_bb): Handle trapping insns.
10403
10404         * gcse.c (hash_scan_set): Refuse instructions with EH edges.
10405
10406 2002-03-07  Richard Sandiford  <rsandifo@redhat.com>
10407
10408         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
10409         (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
10410         * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
10411         (HONOR_SIGN_DEPENDENT_ROUNDING): New.
10412         * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
10413         * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
10414         unless x and y could be infinite.
10415         (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
10416         Check that the common type of both arguments is a real, even for
10417         targets without unordered comparisons.  Allow an integer argument
10418         to be compared against a real.
10419         (expand_tree_builtin): Use expand_unordered_cmp.
10420         * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
10421         * cse.c (fold_rtx): Likewise.  Fix indentation.
10422         * fold-const.c (fold_real_zero_addition_p): New.
10423         (fold): Use it, and the new HONOR_... macros.
10424         * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
10425         * jump.c (reversed_comparison_code_parts): After searching for
10426         the true comparison mode, use HONOR_NANS to decide whether it
10427         can be safely reversed.
10428         (reverse_condition_maybe_unordered): Remove IEEE check.
10429         * simplify-rtx.c (simplify_binary_operation): Use the new macros
10430         to decide which simplifications are valid.  Allow the following
10431         simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
10432         and (a - -b) to (a + b).
10433         (simplify_relational_operation): Use HONOR_NANS.
10434         * doc/tm.texi: Document the MODE_HAS_... macros.
10435
10436 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
10437
10438         * combine.c (simplify_comparison): If simplifying a logical shift
10439         right and compare with constant, force the comparison to unsigned.
10440
10441 2002-03-07  Aldy Hernandez  <aldyh@redhat.com>
10442
10443         * doc/invoke.texi: Add documentation for -mabi=no-altivec.
10444
10445         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
10446         -mabi=no-altivec
10447         (alt_reg_names): Remove % for vrsave.
10448
10449 2002-03-06  Richard Henderson  <rth@redhat.com>
10450
10451         PR optimization/5844
10452         * genemit.c (gen_exp): New argument used.  Invoke copy_rtx
10453         if used indicates we've already emitted one copy of an operand.
10454         (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
10455         (gen_split): Supply a non-null used.
10456
10457 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
10458
10459         * reload1.c (reload): Unshare all rtl after reload is done.
10460
10461         * simplify-rtx.c (simplify_plus_minus): Do not abort,
10462         but simply fail if the expression is too complex to simplify.
10463         (simplify_gen_binary): Handle simplify_plus_minus failures.
10464
10465 Wed Mar  6 20:32:09 CET 2002  Jan Hubicka  <jh@suse.cz>
10466
10467         * toplev.c (rest_of_compilation): Do jump threading before SSA path;
10468         consistently call delete_trivially_dead_insns after CSE and GCSE;
10469         fix DFI_life dumping; do jump threading after liveness; do crossjumping
10470         after liveness2; update comment in last crossjumping.
10471         * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
10472
10473 Wed Mar  6 12:27:10 2002  Jeffrey A Law  (law@redhat.com)
10474
10475         * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
10476         after completing fast dead code elimination.
10477
10478         * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
10479         COMPARE operator.
10480
10481 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
10482
10483         * version.c:  Fix misplaced leading blanks on first line.
10484
10485 Wed Mar  6 19:08:03 CET 2002  Jan Hubicka  <jh@suse.cz>
10486
10487         * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
10488
10489 Wed Mar  6 18:14:43 CET 2002  Jan Hubicka  <jh@suse.cz>
10490
10491         * cfgcleanup.c (mentions_nonequal_regs): New function.
10492         (thread_jump): Use it.
10493         * toplev.c (rest_of_compilation): Run jump threading after
10494         liveness.
10495
10496 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
10497
10498         * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
10499         patch.
10500
10501 Wed Mar  6 11:28:19 CET 2002  Jan Hubicka  <jh@suse.cz>
10502
10503         * predict.c (estimate_bb_frequencies): Do not reload the
10504         frequencies from notes.
10505
10506 Wed Mar  6 10:59:39 CET 2002  Jan Hubicka  <jh@suse.cz>
10507
10508         * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
10509         * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
10510
10511         * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
10512         delete_noop_moves): Return indeger.
10513         * flow.c (ndead): New variable.
10514         (propagate_block_delete_insn): Use delete_insn_and_edges; remove
10515         BB argument; update callers.
10516         (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
10517         (life_analysis): Do not call purge_all_dead_edges.
10518         (update_life_info): Return number of deleted insns; print statistics.
10519         (update_life_info_in_dirty_blocks): likewise.
10520         (delete_noop_moves): Use delete_insn_and_edges; print statistics;
10521         return number of insns deleted.
10522
10523         * cse.c: Include timevar.h
10524         (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
10525         iterate until stabilizes; print statistics; return number of killed
10526         insns.
10527         * Makefile.in: (cse.o): Add timevar.h dependency
10528         * rtl.h (delete_trivially_dead_insns): New.
10529         * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
10530         * toplev.c (rest_of_compilation): Update callers.
10531
10532         * cfgcleanup.c (try_optimize_cfg): Kill blocks.
10533         (try_optimize_cfg): Do not update liveness.
10534         (cleanup-cfg): Loop until try_optimize_cfg and dead code
10535         removal stabilizes; use delete_trivially_dead_insns.
10536
10537         * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
10538
10539 2002-03-05  Zack Weinberg  <zack@codesourcery.com>
10540
10541         * cppmain.c (setup_callbacks): Disable #pragma and #ident
10542         callbacks when processing assembly language.
10543
10544 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10545
10546         * pa.h (ASM_FILE_END): Define.
10547         * som.h (ASM_FILE_END): Delete.
10548
10549         * pa.c (function_arg): Don't pass floats in general registers in
10550         indirect calls if TARGET_ELF32.
10551
10552 2002-03-05  Richard Henderson  <rth@redhat.com>
10553
10554         * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
10555
10556 2002-03-05  Danny Smith  <dannysmith@users.sourceforge.net>
10557
10558         * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
10559
10560 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
10561
10562         * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
10563         -r command line.  Don't hide any symbols if not building
10564         shared libgcc.
10565
10566 Tue Mar  5 18:31:27 CET 2002  Jan Hubicka  <jh@suse.cz>
10567
10568         * cfg.c (dump_flow_info): Warn about profile mismatches.
10569         * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
10570         (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
10571
10572 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
10573
10574         * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
10575         wide volatile memory by parts.
10576
10577 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
10578
10579         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
10580         is NULL.
10581
10582 2002-03-05  Richard Henderson  <rth@redhat.com>
10583
10584         * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
10585
10586 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
10587
10588         * toplev.c (documented_lang_options): Document more
10589         language-specific options.
10590         * doc/invoke.texi (Warning Options): Correct documentation for
10591         -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
10592         * c-decl.c (c_decode_option): Use a table to handle warning options.
10593
10594 2002-03-05  Hans-Peter Nilsson  <hp@bitrange.com>
10595
10596         * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
10597         parameter to mmix_encode_section_info.
10598         (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
10599         relocatably.  Always produce ELF, not mmo if linking relocatably.
10600         * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
10601         first is non-zero, don't add symbol prefix.
10602         * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
10603         prototype accordingly.
10604
10605 2002-03-04  Krister Walfridsson  <cato@df.lth.se>
10606
10607         * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
10608
10609 2002-03-05  Joseph S. Myers  <jsm28@cam.ac.uk>
10610
10611         * configure.in: Increase required makeinfo version to 4.1.
10612         * configure: Regenerate.
10613
10614 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
10615
10616         * .cvsignore: Remove *.info* and genrtl*; these files are generated
10617         elsewhere now.
10618
10619 2002-03-04  Joseph S. Myers  <jsm28@cam.ac.uk>
10620
10621         * doc/include/texinfo.tex: Update to version 2002-03-01.06.
10622         * doc/invoke.texi: Fix @math uses.
10623
10624 Mon Mar  4 15:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
10625
10626         * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
10627         removal
10628
10629 2002-03-03  Aldy Hernandez  <aldyh@redhat.com>
10630
10631         * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
10632         (powerpc-*-eabisimaltivec*): Same.
10633
10634         * config/rs6000/t-ppcendian: New.
10635
10636 2002-03-04  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10637
10638         * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
10639         nonimmediate_src_operand and nonimmediate_lsrc_operand to
10640         disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
10641
10642 2002-03-03  Richard Henderson  <rth@redhat.com>
10643
10644         * toplev.c (rest_of_decl_compilation): Revert last two changes.
10645
10646 2002-03-03  Zack Weinberg  <zack@codesourcery.com>
10647
10648         * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
10649         print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
10650         tree.c, config/m68k/m68k.c:
10651         Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
10652         REAL_ARITHMETIC blocks unconditional.  Delete some further
10653         #ifdef blocks predicated on REAL_ARITHMETIC.
10654         * flags.h, toplev.c: Delete remaining references to
10655         flag_pretend_float.
10656
10657         * doc/invoke.texi: Remove documentation of -fpretend-float.
10658         * doc/tm.texi: Describe the various REAL_* macros as provided by
10659         real.h, not by the target configuration files.
10660
10661         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
10662         config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
10663         config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
10664         config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
10665         config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
10666         config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
10667         config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
10668         config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
10669         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
10670         config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
10671         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
10672         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
10673         config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
10674         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
10675         config/xtensa/xtensa.h:
10676         Do not define, undefine, or mention in comments any of
10677         REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
10678         REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
10679         REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
10680         REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
10681         REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
10682         REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
10683         REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
10684         REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
10685         REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
10686
10687 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10688
10689         * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
10690         convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
10691         i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
10692         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
10693         pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
10694         stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
10695         Delete.
10696         * defaults.h (BITS_PER_WORD): Define.
10697         * doc/tm.texi (BITS_PER_WORD): Document default value.
10698
10699         * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
10700         m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
10701         stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
10702
10703 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10704
10705         * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
10706         lieu of explicit sizeof/sizeof.
10707         * i386.c (override_options, ix86_init_mmx_sse_builtins,
10708         ix86_expand_builtin): Likewise.
10709         * mips.c (mips_add_gc_roots): Likewise.
10710         * mmix.c (mmix_output_condition): Likewise.
10711         * rs6000.c (rs6000_override_options, altivec_expand_builtin,
10712         altivec_init_builtins): Likewise.
10713         * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
10714         * cppexp.c (Nsuff, parse_number): Likewise.
10715         * cppinit.c (builtin_array_end): Likewise.
10716         * gcc.c (n_default_compilers, process_command): Likewise.
10717         * genpreds.c (output_predicate_decls): Likewise.
10718         * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
10719         * lcm.c (N_ENTITIES): Likewise.
10720         * stor-layout.c (set_sizetype): Likewise.
10721
10722 2002-03-03  Richard Henderson  <rth@redhat.com>
10723
10724         * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
10725         for types or labels.
10726
10727 2002-03-03  Richard Henderson  <rth@redhat.com>
10728
10729         * c-decl.c (start_decl): Initialized variables are not common.
10730
10731 2002-03-02  Per Bothner  <per@bothner.com>
10732
10733         * gcc.c (option_map):  Suport new --bootclasspath option.
10734         --CLASSPATH is now just an alias for --classpath.
10735
10736 2002-03-02  Richard Henderson  <rth@redhat.com>
10737
10738         * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
10739         load if "internal" visibility.
10740         * doc/extend.texi: Document visibility meanings.
10741
10742 2002-03-02  Richard Henderson  <rth@redhat.com>
10743
10744         * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
10745         to functions as well.
10746
10747 2002-03-02  Richard Henderson  <rth@redhat.com>
10748
10749         * attribs.c (handle_alias_attribute): Don't call assemble_alias.
10750         (handle_visibility_attribute): Don't call assemble_visibility.
10751         * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
10752         without asmspec.  Invoke assemble_alias when needed.
10753         * varasm.c (maybe_assemble_visibility): New.
10754         (assemble_start_function, assemble_variable, assemble_alias): Use it.
10755
10756 2002-03-02  Richard Henderson  <rth@redhat.com>
10757
10758         * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
10759         invoke ENCODE_SECTION_INFO with first call flag.
10760
10761         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
10762         config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
10763         config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
10764         config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
10765         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
10766         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
10767         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
10768         config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
10769         config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
10770         config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
10771         config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
10772         config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
10773         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
10774         config/m68hc11/m68hc11.h, config/m88k/m88k.h,
10775         config/mcore/mcore-protos.h, config/mcore/mcore.c,
10776         config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
10777         config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
10778         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
10779         config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
10780         config/sh/sh.h, config/sparc/sparc.h,
10781         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
10782         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
10783         config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
10784         FIRST argument.  As needed, examine it and do nothing.
10785
10786         * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
10787         config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
10788         config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
10789
10790         * config/arm/t-pe (pe.o): Add dependencies.
10791
10792 2002-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10793
10794         * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
10795         cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
10796         i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
10797         mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
10798         pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
10799         vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
10800         * defaults.h (BITS_PER_UNIT): Define.
10801         * doc/tm.texi (BITS_PER_UNIT): Document default value.
10802
10803 2002-03-02  Kazu Hirata  <kazu@hxi.com>
10804
10805         * config/h8300/h8300-protos.h: Add a prototype for
10806         compute_a_shift_length.
10807         * config/h8300/h8300.c (h8300_asm_insn_count): New.
10808         (compute_a_shift_length): Likewise.
10809         (h8300_adjust_insn_length): Do not adjust insn length of shift
10810         insns.
10811         * config/h8300/h8300.md (anonymous shift patterns): Use
10812         compute_a_shift_length.
10813
10814 Sat Mar  2 06:30:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10815
10816         * config/sparc/sparc.c (sparc_initialize_trampoline): Use
10817         trunc_int_for_mode.
10818
10819         * emit-rtl.c (offset_address): Call update_temp_slot_address.
10820
10821 2002-03-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10822
10823         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
10824         * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
10825         * flags.h (flag_zero_initialized_in_bss): Declare.
10826         * toplev.c (flag_zero_initialized_in_bss): New flag.
10827         (lang_independent_options): Add flag_zero_initialized_in_bss.
10828         * tree.c (initializer_zerop): New function.
10829         * tree.h (initializer_zerop): Declare.
10830         * varasm.c (assemble_variable): If we can emit bss, put zero
10831         initializers in the bss section.
10832
10833 2002-03-02  Alan Modra  <amodra@bigpond.net.au>
10834
10835         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
10836         like more than one symbol per .weak directive.
10837
10838 2002-03-01  Richard Henderson  <rth@redhat.com>
10839
10840         * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
10841         adjust argument_pointer by pretend_args_size.
10842         (ia64_va_start): Adjust va_start address by -pretend_args_size.
10843
10844 2002-03-01  Kazu Hirata  <kazu@hxi.com>
10845
10846         * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
10847
10848 Fri Mar  1 20:59:14 CET 2002  Jan Hubicka  <jh@suse.cz>
10849
10850         * toplev.c (rest_of_compilation): Delete dead jumptables before
10851         loop.
10852         * flow.c (delete_dead_jumptables): Make global.
10853         * rtl.h (delete_dead_jumptables): Declare.
10854
10855 2002-03-01  David Edelsohn  <edelsohn@gnu.org>
10856
10857         * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
10858         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
10859         * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
10860
10861 2002-03-01  Kazu Hirata  <kazu@hxi.com>
10862
10863         * config/h8300/h8300-protos.h: Fix formatting.
10864         * config/h8300/h8300.c: Likewise.
10865         * config/h8300/h8300.h: Likewise.
10866
10867 2002-03-01  Kazu Hirata  <kazu@hxi.com>
10868
10869         * config/h8300/h8300.c (print_operand): Support 16-bit
10870         constant addresses.
10871         * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
10872
10873 2002-02-28  Richard Henderson  <rth@redhat.com>
10874
10875         * expmed.c (store_bit_field): Prevent generation of CONCATs;
10876         pun complex values as integers; use gen_lowpart instead of
10877         gen_rtx_SUBREG.
10878         (extract_bit_field): Likewise.
10879
10880 2002-03-01  Alan Modra  <amodra@bigpond.net.au>
10881             David Edelsohn  <edelsohn@gnu.org>
10882
10883         * doc/tm.texi (ASM_WEAKEN_DECL): Document.
10884         (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
10885         (SUPPORTS_WEAK): Likewise.
10886         * output.h (add_weak): Add tree param.
10887         * varasm.c (add_weak): Likewise.  Save decl.
10888         (struct weak_syms): Add decl field.
10889         (mark_weak_decls): New function.
10890         (init_varasm_once): ggc_add_root mark_weak_decls.
10891         (assemble_start_function): Use ASM_WEAKEN_DECL.
10892         (assemble_variable): Likewise.
10893         (assemble_alias): Likewise.
10894         (declare_weak): Pass decl to add_weak.
10895         (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
10896         (remove_from_pending_weak_list): Declare and define for
10897         ASM_WEAKEN_DECL.
10898         * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
10899         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
10900         * defaults.h (SUPPORTS_WEAK): Likewise.
10901         * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
10902         .weak for code sym.  Do emit .size for descriptor sym.
10903         (ASM_DECLARE_FUNCTION_SIZE): Define.
10904         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
10905         (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here.  Don't output
10906         .lglobl unless TARGET_XCOFF.  Formatting fixes.
10907         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
10908         .weak for code sym.
10909         (HANDLE_PRAGMA_WEAK): Remove.
10910         (ASM_WEAKEN_LABEL): Remove.
10911         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
10912
10913 2002-03-01  Jason Merrill  <jason@redhat.com>
10914
10915         * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
10916         (TARGET_EXPR_CLEANUP): New macro.
10917
10918 2002-02-28  Steve Ellcey  <sje@cup.hp.com>
10919
10920         * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
10921         to take ptr_extend into account as third type of extension.
10922         (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
10923         fields used by SUBREG_PROMOTED_UNSIGNED_P.
10924         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
10925         (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
10926         * calls.c (precompute_arguments): Use new macro.
10927         (expand_call): Ditto.
10928         * combine.c (nonzero_bits): Ditto.
10929         (record_promoted_value): Ditto.
10930         * expr.c (store_expr): Ditto.
10931         (expand_expr): Ditto.
10932         * function.c (assign_parms): Ditto.
10933
10934 2002-02-28  Alexandre Oliva  <aoliva@redhat.com>
10935
10936         * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
10937         override -shared and -shared-libgcc.
10938
10939 2002-02-28  David O'Brien  <obrien@FreeBSD.org>
10940
10941         * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
10942         of "ultrasparc".
10943         * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS.  It appears
10944         to be broken.
10945
10946 2002-02-28  Richard Henderson  <rth@redhat.com>
10947
10948         * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
10949         4 cycle latency from MM producers.
10950         (ia64_internal_sched_reorder): Likewise with pipeline flush.
10951
10952 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
10953
10954         * mklibgcc.in: Don't use GNU make extension.
10955
10956 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
10957
10958         * c-parse.in (STATIC): New terminal.
10959         (scspec): New non-terminal.  Update productions accordingly.
10960         (program): Remove bogus ifc / end ifc.
10961         (array_declarator): Simplify production using STATIC.
10962
10963 2002-02-28  Jim Meyering  <meyering@lucent.com>
10964
10965         * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
10966         \a still means TARGET_BELL.
10967
10968 2002-02-28  Richard Henderson  <rth@redhat.com>
10969
10970         * haifa-sched.c (sched_emit_insn): New.
10971         (schedule_block): Use last_scheduled_insn to track last insn.
10972         * sched-int.h (sched_emit_insn): Prototype.
10973         * config/ia64/ia64.c (last_issued): Remove.
10974         (ia64_variable_issue): Don't set it.
10975         (nop_cycles_until): Use sched_emit_insn.
10976
10977 2002-02-28  Andrew MacLeod  <amacleod@redhat.com>
10978
10979         * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
10980         extended constants.
10981
10982 2002-02-28  Kazu Hirata  <kazu@hxi.com>
10983
10984         * config/h8300/h8300.c: Fix formatting.
10985         * config/h8300/h8300.h: Likewise.
10986
10987 2002-02-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>
10988
10989         * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
10990         which may overwrite the high byte of the frame pointer.
10991
10992 2002-02-28  Bo Thorsen  <bo@suse.de>
10993
10994         * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
10995         (STARTFILE_SPEC): Add 64 bit files.
10996         (ENDFILE_SPEC): Likewise.
10997
10998 2002-02-28  Jason Merrill  <jason@redhat.com>
10999
11000         * c-decl.c (finish_function): Only warn about missing return
11001         statement with -Wreturn-type.
11002
11003 Don Feb 28 11:24:30 CET 2002  Jan Hubicka  <jh@suse.cz>
11004
11005         * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
11006
11007         * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
11008         PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
11009
11010 Don Feb 28 11:07:36 CET 2002  Jan Hubicka  <jh@suse.cz>
11011
11012         * basic-block.h (BB_REACHABLE): Renumber.
11013         (BB_DIRTY, BB_NEW): New flags.
11014         (clear_bb_flags): Declare.
11015         (update_life_info_in_dirty_blocks): Declare.
11016         * cfg.c (clear_bb_flags): New function.
11017         * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
11018         * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
11019         reorder_insns, emit_insn_after): Mark block as dirty.
11020         * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
11021         (update_life_info_in_dirty_blocks): New function.
11022         * recog.c (apply_change_group): Dirtify block.
11023
11024         * cse.c (cse_insn): Reorder emitting of jump insn to keep
11025         cfg consistent.
11026         * gcse.c (delete_null_pointer_checks): Likewise.
11027
11028         * toplev.c (dump_file_index): Move cse2 after bp,
11029         add DFI_null
11030         (dump_file_info): Similary.
11031         (rest_of_compilation): Avoid most of CFG rebuilds;
11032         do first if converision after null pointer checks, do cse2
11033         after branch prediction; avoid full liveness rebuild after
11034         initializing subregs.
11035         * invoke.texi (-d options): Document -du, renumber.
11036
11037         * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
11038         (notice_new_block): Do not set BB_UPDATE_LIFE.
11039         (try_forward_edges, merge_blocks_move_predecessor_nojumps,
11040          merge_blocks_move_successor_nojumps, merge_blocks,
11041          try_crossjump_to_edge): Likewise.
11042         (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
11043         * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
11044         * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
11045         (merge_of_block): Do not use life_data_ok.
11046         (find_if_case_1): Do not use SET_UPDATE_LIFE.
11047         (if_convert): Use BB_DIRTY mechanizm to update life.
11048         * lcm.c (optimize_mode_switching): Update
11049         update_life_info_in_dirty_blocks
11050
11051 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
11052
11053         * Makefile.in (integrate.o): Update.
11054         * c-decl.c (copy_lang_decl): Rename.
11055         * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
11056         * integrate.c: Include langhooks.h.
11057         (copy_decl_for_inlining): Update to use langhook.
11058         * langhooks-def.h (lhd_do_nothing_t,
11059         LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
11060         (LANG_HOOKS_INITIALIZER): Update.
11061         * langhooks.c (lhd_do_nothing_t): New.
11062         * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
11063         * tree.h (copy_lang_decl): Remove.
11064 objc:
11065         * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
11066
11067 2002-02-27  Andrew MacLeod  <amacleod@redhat.com>
11068
11069         * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
11070         POST_DEC, and POST_MODIFY.
11071
11072 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
11073
11074         * c-typeck.c (digest_init): Remove unused parameter; all
11075         callers changed.
11076
11077 2002-02-27  Geoffrey Keating  <geoffk@redhat.com>
11078
11079         * expmed.c (expand_shift): Correctly test for low part of a
11080         subreg.
11081
11082 2002-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
11083
11084         * config/s390/s390.c (s390_chunkify_pool): Do not confuse
11085         insn UIDs with insn addresses.
11086
11087 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
11088
11089         * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
11090         c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
11091         cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
11092         builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
11093         gcc.c, toplev.c: Delete code implementing -traditional mode.
11094
11095         * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
11096         doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
11097         Document removal of -traditional mode for compilation, and
11098         remove documentation only relevant to that mode.
11099
11100         * config/nextstep.h, config/ptx4.h, config/svr4.h,
11101         config/convex/convex.h, config/d30v/d30v.h,
11102         config/i386/dgux.h, config/i386/osf1elf.h,
11103         config/i386/osfelf.h, config/i386/osfrose.h,
11104         config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
11105         config/m68k/hp310.h, config/m88k/dgux.h,
11106         config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
11107         config/m88k/m88k.h, config/m88k/openbsd.h,
11108         config/mips/abi64.h, config/mips/osfrose.h,
11109         config/mips/svr4-5.h, config/mips/svr4-t.h,
11110         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
11111         config/stormy16/stormy16.h: Remove all references to
11112         -traditional from target specs.  Delete all mention of the
11113         no-longer-necessary TRADITIONAL_RETURN_FLOAT macro.  Also
11114         delete a couple of commented-out definitions of
11115         DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
11116         to -traditional.
11117
11118         * system.h: Poison TRADITIONAL_RETURN_FLOAT.
11119         * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
11120
11121 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
11122
11123         * mklibgcc.in: Don't use \n in a line subject to
11124         interpretation by echo.
11125
11126 2002-02-27  Graham Stott  <grahams@redhat.com>
11127
11128         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
11129         Constify NAME.
11130
11131         * loop.c (prescan_loop): Handle PARALLEL.
11132
11133         * unroll.c (loop_iterations): Return 0 if the add_val for
11134         a BIV is REG.
11135
11136         * final.c (output_operand_lossage): Constify PFX_STR.
11137
11138         * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
11139
11140 Wed Feb 27 10:45:19 CET 2002  Jan Hubicka  <jh@suse.cz>
11141
11142         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
11143         * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
11144
11145 Wed Feb 27 10:39:20 CET 2002  Jan Hubicka  <jh@suse.cz>
11146
11147         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
11148
11149 2002-02-27  Neil Booth  <neil@daikokuya.demon.co.uk>
11150
11151         * cpplex.c (_cpp_lex_token): Handle directives in macro
11152         arguments.
11153         * cpplib.c (_cpp_handle_directive): Save and restore state
11154         if parsing macro args when entering a directive.
11155         * cppmacro.c (collect_args): No need to handle directives
11156         in macro arguments.
11157         (enter_macro_context, replace_args): Use the original macro
11158         definition in case it was redefined whilst collecting arguments.
11159 doc:
11160         * cpp.texi: Update.
11161
11162 2002-02-26  David Edelsohn  <edelsohn@gnu.org>
11163
11164         * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
11165         * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
11166         * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
11167         method on AIX.
11168         * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
11169         (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
11170         (load_toc_v4_PIC_2): Same.
11171
11172 2002-02-26  Alan Modra  <amodra@bigpond.net.au>
11173
11174         * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
11175
11176 2002-02-26  Richard Henderson  <rth@redhat.com>
11177
11178         * config/alpha/alpha.md (ashldi_se): Re-enable.
11179
11180 2002-02-26  Richard Henderson  <rth@redhat.com>
11181
11182         * config/alpha/alpha.c (alpha_encode_section_info): Examine
11183         MODULE_LOCAL_P; improve commentary.
11184
11185 2002-02-26  Zack Weinberg  <zack@codesourcery.com>
11186
11187         * doc/cpp.texi: Clarify documentation of relationship between
11188         #line and #include.
11189
11190 2002-02-26  Kazu Hirata  <kazu@hxi.com>
11191
11192         * config/h8300/h8300-protos.h: Update the prototype for
11193         compute_logical_op_length.  Add the prototype for
11194         compute_logical_op_cc.
11195         * config/h8300/h8300.c (compute_logical_op_length): Figure out
11196         code from operands.
11197         (compute_logical_op_cc): New.
11198         * config/h8300/h8300.md: Combine all the logical op patterns
11199         in HImode and SImode.  Use compute_logical_op_cc.
11200
11201 2002-02-26  Kelley Cook  <kelleycook@comcast.net>
11202
11203         * config/i386/i386.c (print_operand): Don't append ATT-style
11204         length suffixs to x87 opcodes when in Intel mode.
11205
11206 2002-02-26  Ryan T. Sammartino <ryants@shaw.ca>
11207
11208         * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
11209         (init_emit_once): Update calls.
11210         * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
11211         (init_syntax_once): Prototype.
11212
11213 2002-02-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11214
11215         * pa-linux.h (LIB_SPEC): Update definition.
11216         * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
11217
11218 2002-02-26  Richard Henderson  <rth@redhat.com>
11219
11220         * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
11221         if we emitted a stop bit.
11222
11223 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
11224
11225         * configure.in (libgcc_visibility): Substitute.
11226         * configure: Rebuilt.
11227         * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
11228         defined symbols .hidden.
11229
11230 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
11231
11232         * attribs.c (c_common_attribute_table): Add visibility.
11233         (handle_visibility_attribute): New function.
11234         * varasm.c (assemble_visibility): New function.
11235         * output.h (assemble_visibility): Add prototype.
11236         * tree.h (MODULE_LOCAL_P): Define.
11237         * crtstuff.c (__dso_handle): Use visibility attribute.
11238         * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
11239         for MODULE_LOCAL_P symbols too.
11240         * config/ia64/ia64.c (ia64_encode_section_info): Handle
11241         MODULE_LOCAL_P symbols the same way as local symbols.
11242         Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
11243         into .sdata/.sbss by the user.
11244         * doc/extend.texi (Function Attributes): Document visibility
11245         attribute.
11246
11247 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
11248
11249         PR debug/5770
11250         * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
11251         STRING_CST initializer spanning the whole variable without
11252         embedded zeros.
11253         If expand_expr returned MEM, don't use it.
11254
11255 2002-02-26  Alexandre Oliva  <aoliva@redhat.com>
11256
11257         * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
11258         generate a die for the lexical block.
11259
11260 2002-02-26  Kazu Hirata  <kazu@hxi.com>
11261
11262         * config/h8300/h8300-protos.h: Add a prototype for
11263         compute_logical_op_length.
11264         * config/h8300/h8300.c (compute_logical_op_length): New.
11265         * config/h8300/h8300.md (anonymous logical patterns): Use
11266         compute_logical_op_length for length.
11267
11268 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
11269
11270         * dwarf2out.c (modified_type_die): Do not call type_main_variant
11271         for vectors.
11272         (gen_type_die): Same.
11273
11274         * attribs.c (handle_vector_size_attribute): Set debug information.
11275
11276 2002-02-26  Daniel Egger  <degger@fhm.edu>
11277
11278         * config/rs6000/rs6000.md: Swap define_insn attributes to
11279         fix incorrect generation of merge high instructions instead
11280         of merge low.
11281
11282 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
11283
11284         * c-typeck.c (really_start_incremental_init): Use
11285         bitsize_zero_node for vectors.
11286
11287 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
11288
11289         * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
11290         ("*set_vrsave_internal"): Same.
11291
11292 2002-02-25  Richard Henderson  <rth@redhat.com>
11293
11294         * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
11295         in EXPAND_SUM case.  Use host_integerp/tree_low_cst.
11296
11297 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
11298
11299         PR target/5755
11300         * config/i386/i386.c (ix86_return_pops_args): Only pop
11301         fake structure return argument if it was passed on the stack.
11302
11303 2002-02-25  Jason Merrill  <jason@redhat.com>
11304
11305         * attribs.c (decl_attributes): Also re-layout PARM_DECL and
11306         RESULT_DECL.
11307
11308 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
11309
11310         * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
11311         link with shared_name only.
11312         * doc/invoke.texi (Link Options): Document new behavior.
11313
11314 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
11315
11316         * c-typeck.c (push_init_level): Handle vectors.
11317
11318 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
11319
11320         * config/sparc/sparc.c (const64_high_operand): Zero-extend
11321         operands of SPARC_SETHI_P.
11322         (input_operand): Likewise.
11323         (sparc_emit_set_const32): Likewise.
11324         * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
11325         (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
11326         (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'.  Add `N' as SETHI.
11327         * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
11328         (movdi_insn_sp64_vis): Likewise.
11329         (movdi split, movdf split): Use SETHI32.
11330         * doc/md.texi: Document SPARC constraints L, M and N.
11331
11332 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
11333
11334         * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
11335         ("*set_vrsave_internal"): use mfspr for Darwin.
11336
11337         * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
11338         gen_get_vrsave_internal.
11339
11340 Sun Feb 24 16:38:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11341
11342         * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
11343
11344 2002-02-24  Neil Booth  <neil@daikokuya.demon.co.uk>
11345
11346         * cpplex.c (cpp_interpret_charconst): Get signedness or
11347         otherwise of wide character constants correct.
11348         * cppexp.c (lex): Get signedness of wide charconsts correct.
11349
11350 Sun Feb 24 07:41:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11351
11352         * optabs.c (widen_operand): Only call convert_modes for
11353         promoted SUBREG if signedness matches.
11354         * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
11355
11356 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
11357
11358         * cpplib.c (glue_header_name): Use local buffer to build up
11359         header name.
11360
11361 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
11362
11363         * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
11364
11365 2002-02-23  Kazu Hirata  <kazu@hxi.com>
11366
11367         * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
11368         H8/300[HS] separately.
11369         * config/h8300/h8300.md: Remove the early clobber constraint
11370         from bit field patterns.
11371
11372 2002-02-23  Kazu Hirata  <kazu@hxi.com>
11373
11374         * config/h8300/h8300.md (mulqihi3): Tighten predicates to
11375         register_operand.
11376         (mulhisi3): Likewise.
11377         (umulqisi3): Likewise.
11378         (umulhisi3): Likewise.
11379
11380 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
11381
11382         * cppinit.c (output_deps): Correct test for stdout output.
11383         (init_dependency_output): Cure warning.
11384
11385 Sat Feb 23 08:42:47 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11386
11387         * expr.c (store_expr): When converting expression to promoted
11388         equivalent type, allow using SUBREG_REG of TARGET as the target
11389         of the expansion of EXP.
11390         * loop.c (basic_induction_var, case SUBREG): Always look inside.
11391         * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
11392         (alpha_emit_set_const): Handle SImode when can't make new pseudos.
11393         (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
11394         * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
11395
11396 2002-02-23  Joseph S. Myers  <jsm28@cam.ac.uk>
11397
11398         * doc/contribute.texi, doc/extend.texi, doc/install.texi,
11399         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
11400         doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
11401
11402 2002-02-23  Jakub Jelinek  <jakub@redhat.com>
11403
11404         PR optimization/5747
11405         * loop.c (scan_loop): Update reg info if move_movables created new
11406         pseudos.
11407
11408 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
11409
11410         * gcc.c (init_gcc_spec): Revert last change.
11411
11412 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
11413
11414         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
11415         gpc_reg_operand constraint.
11416
11417 2002-02-23  Alan Modra  <amodra@bigpond.net.au>
11418
11419         * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
11420         Simplify comparison of `low'.
11421         (add_operand): Fix formatting.
11422         (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
11423         (mask_operand): Disallow mask to wrap in 64-bit mode.
11424         (rs6000_stack_info): Remove redundant test setting push_p.
11425         (output_toc): Fix formatting.
11426         * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
11427         cc_reg_not_cr0_operand constraint.
11428         (booldi3, boolcdi3 splitters): Same.
11429
11430 2002-02-23  Aldy Hernandez  <aldyh@redhat.com>
11431
11432         * config/rs6000/altivec.h: Add extra level of parentheses on casts.
11433
11434 2002-02-22  David Edelsohn  <edelsohn@gnu.org>
11435
11436         * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
11437         gcc invoked with -shared-libgcc.
11438
11439 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
11440
11441         PR c++/5748
11442         * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
11443         decl if any of elements was TREE_USED.
11444
11445 2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
11446
11447         * config/sparc/sol2.h: Don't include sys/mman.h.
11448         * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
11449         (arith_4096_operand): Don't throw high bits away.
11450         (const64_operand): Take sign extension of CONST_INTs into account.
11451         (const64_high_operand, sparc_emit_set_const32): Likewise.
11452         (GEN_HIGHINT64): Likewise.
11453         (sparc_emit_set_const64_quick1): Likewise.
11454         (const64_is_2insns): Likewise.
11455         (print_operand): Use trunc_int_for_mode for sign extension.
11456         * config/sparc/sparc.h (SMALL_INT32): Likewise.
11457         * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
11458         chars.  Assume CONST_INT is already properly sign-extended.
11459         (movdi split): Sign-extend each SImode part.
11460         (andsi3 split): Don't mask high bits off, so that result
11461         remains properly sign-extend.
11462         (iorsi3 split): Likewise.
11463         (xorsi3 split): Likewise.
11464
11465 2002-02-22  Richard Sandiford  <rsandifo@redhat.com>
11466
11467         * fold-const.c (fold): Fix typo in comments.
11468
11469 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
11470
11471         * Makefile.in (langhooks.o): Update dependencies.
11472
11473 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
11474
11475         * langhooks.c: Include flags.h.
11476
11477 2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
11478
11479         * testsuite/gcc.dg/attr-alwaysinline.c: New.
11480
11481         * c-common.c (c_common_post_options): Set inline trees by
11482         default.
11483
11484         * doc/extend.texi (Function Attributes): Document always_inline
11485         attribute.
11486         Update documentation about inlining when not optimizing.
11487
11488         * cp/decl.c (duplicate_decls): Merge always_inline attribute.
11489
11490         * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
11491         unless DECL_ALWAYS_INLINE.
11492
11493         * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
11494         unless DECL_ALWAYS_INLINE.
11495         (c_disregard_inline_limits): Disregard if always_inline set.
11496
11497         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
11498         Disregard if always_inline set.
11499         (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
11500         unless DECL_ALWAYS_INLINE.
11501
11502         * attribs.c (handle_always_inline_attribute): New.
11503         (c_common_attribute_table): Add always_inline.
11504
11505         * config/rs6000/altivec.h: Add prototypes for builtins
11506         requiring the always_inline attribute.
11507
11508 2002-02-21  Eric Christopher  <echristo@redhat.com>
11509
11510         * expmed.c (store_bit_field): Try to simplify the subreg
11511         before generating a new one when when the mode size of
11512         value is less than maxmode.
11513
11514 2002-02-21  Richard Henderson  <rth@redhat.com>
11515
11516         * emit-rtl.c (offset_address): Use simplify_gen_binary rather
11517         than gen_rtx_PLUS to form the sum.
11518         * explow.c (force_reg): Rearrange to not allocate new pseudo
11519         when force_operand returns a register.
11520         * expr.c (expand_assignment): Allow offset_rtx expansion to
11521         return a sum.  Do not force addresses into registers.
11522         (expand_expr): Likewise.
11523         * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
11524         to canonicalize arithmetic that didn't simpify.
11525         (simplify_plus_minus): New argument force; update
11526         all callers.  Don't split CONST unless we can do something with it,
11527         and wouldn't lose the constness of the operands.
11528
11529         * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
11530         that we generated earlier.
11531
11532 2002-02-21  Tom Tromey  <tromey@redhat.com>
11533
11534         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11535         (output_line_info): Use constant `1', with a long explanatory
11536         comment.
11537         * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
11538
11539 Thu Feb 21 22:43:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
11540
11541         * jump.c (redirect_jump): If old label has no UID, don't try to
11542         delete it.
11543
11544 Thu Feb 21 21:17:21 2002  J"orn Rennecke <joern.rennecke@superh.com>
11545
11546         * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
11547         If input is constant, do shifts at compile time.
11548
11549 2002-02-21  Joseph S. Myers  <jsm28@cam.ac.uk>
11550
11551         * doc/extend.texi: Fix some more overfull hboxes.
11552
11553 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
11554
11555         PR optimization/4994
11556         * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
11557         register moves.
11558
11559 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
11560
11561         PR c++/4574
11562         * expr.h (expand_and): Add mode argument.
11563         * expmed.c (expand_and): Add mode argument.
11564         (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
11565         * expr.c (store_field, expand_expr, do_store_flag): Likewise.
11566         * except.c (expand_builtin_extract_return_addr): Likewise.
11567         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
11568         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
11569         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
11570         Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
11571         * config/c4x/c4x.md: Use GEN_INT (x) instead of
11572         gen_rtx (CONST_INT, VOIDmode, x).
11573
11574 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
11575
11576         PR c/4697:
11577         * stmt.c (warn_if_unused_value): Move side effects test once more.
11578
11579 2002-02-20  Torbjorn Granlund  <tege@swox.com>
11580
11581         * config/avr/avr.md: Add more patterns for mized-mode add and subtract
11582         (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
11583
11584 Thu Feb 21 16:20:46 2002  Alexandre Oliva  <aoliva@redhat.com>
11585
11586         * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
11587         SUBREG or ZERO_EXTEND.
11588
11589 Thu Feb 21 15:35:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
11590
11591         * sh.h (current_function_anonymous_args): Remove.
11592         (SETUP_INCOMING_VARARGS): Don't set it - just check that one
11593         of current_function_varargs and current_function_stdarg is set.
11594         * sh.c (sh_expand_prologue): Check current_function_varargs /
11595         current_function_stdarg / TARGET_SH5 instead of
11596         current_function_anonymous_args.
11597
11598         * sh64.h (TARGET_VERSION): Define.
11599
11600 2002-02-20  David Edelsohn  <edelsohn@gnu.org>
11601
11602         * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
11603         VRSAVE_REGNO on TARGET_ALTIVEC.
11604
11605 2002-02-20  Alan Modra  <amodra@bigpond.net.au>
11606
11607         * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
11608         bits of SImode const_int.
11609         (includes_rshift_p): Likewise.
11610         (print_operand): Call mask_operand and mask64_operand with correct
11611         mode.
11612         (rs6000_output_function_epilogue): Pad traceback table to word.
11613         * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
11614         (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
11615         mask64_operand with correct mode.
11616         (FUNCTION_ARG_REGNO_P): Correct parentheses.
11617
11618 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
11619
11620         PR debug/4461
11621         * varasm.c (get_pool_constant_mark): New.
11622         * rtl.h (get_pool_constant_mark): Add prototype.
11623         * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
11624         be represented if it has not been output.
11625
11626 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
11627
11628         * combine.c (do_SUBST): Sanity check substitutions of
11629         CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
11630         (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
11631         CONST_INT into its operand.
11632         (known_cond): Likewise, for ZERO_EXTEND.
11633         * simplify-rtx.c (simplify_unary_operation): Fix condition to
11634         allow for simplification of wide modes.  Reject CONST_INTs in
11635         ZERO_EXTEND when their actual mode is not given.
11636
11637 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
11638
11639         * c-decl.c (pushdecl): If no global declaration is found for an
11640         extern declaration in block scope, try a limbo one.
11641
11642 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
11643
11644         PR c++/4401
11645         * c-common.c (pointer_int_sum): Moved from...
11646         * c-typeck.c (pointer_int_sum): ...here.
11647         * c-common.h (pointer_int_sum): Add prototype.
11648
11649 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
11650
11651         PR c++/5713
11652         * c-decl.c (duplicate_decls): Return 0 if issued error about
11653         redeclaration.
11654
11655 2002-02-20  Roger Sayle  <roger@eyesopen.com>
11656             Jakub Jelinek  <jakub@redhat.com>
11657
11658         PR c/4389
11659         * tree.c (host_integerp): Ensure that the constant integer is
11660         representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
11661         when pos is zero or non-zero respectively.  Clarify comment.
11662         * c-format.c (check_format_info_recurse): Fix host_integerp
11663         usage; the pos argument should be zero when assigning to a
11664         signed HOST_WIDE_INT.
11665
11666 2002-02-20  Richard Henderson  <rth@redhat.com>
11667
11668         * config/i386/i386.c (ix86_expand_vector_move): Use the mode
11669         of the operand, rather than assuming TImode.
11670         (ix86_expand_binop_builtin): Cope with commutative patterns
11671         using nonimmediate_operand for both operands.
11672         (ix86_expand_timode_binop_builtin): Likewise.
11673         (ix86_expand_store_builtin): Validate operand 1.
11674         (ix86_expand_unop1_builtin): Likewise.
11675
11676 2002-02-20  Philip Blundell  <philb@gnu.org>
11677
11678         PR 5705
11679         * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
11680
11681 2002-02-20  Richard Henderson  <rth@redhat.com>
11682
11683         PR c/5615
11684         * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
11685
11686 2002-02-20  Tom Tromey  <tromey@redhat.com>
11687
11688         * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11689         * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11690         * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11691         * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11692         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
11693         unconditionally.
11694
11695 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
11696
11697         * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
11698           for (const_int 0) in X not just INTVAL.
11699
11700 2002-02-20  Joseph S. Myers  <jsm28@cam.ac.uk>
11701
11702         * doc/extend.texi: Avoid or reduce overfull hboxes.
11703
11704 2002-02-20  Diego Novillo  <dnovillo@redhat.com>
11705
11706         * expmed.c (store_bit_field): Do not store bit fields using SUBREG
11707         operations if the field does not start at a mode boundary.
11708
11709 2001-02-20      Joel Sherrill <joel@OARcorp.com>
11710
11711         * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
11712         config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
11713         Also done for -Acpu and -Amachine.
11714
11715 2002-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
11716
11717         * cppinit.c (init_dependency_output): Take deps output file
11718         from -o if none given with -MF.  Suppress normal output.
11719         * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
11720         * doc/cpp.texi, doc/invoke.texi: Update.
11721
11722 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
11723
11724         * toplev.c (output_quoted_string): Write unprintable
11725         characters with octal escapes.
11726
11727 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
11728
11729         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
11730         really_call_used[VRSAVE_REGNO] if not Altivec.
11731
11732 2002-02-19  Alan Modra  <amodra@bigpond.net.au>
11733
11734         * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
11735         MODE_MASK.
11736         (constant_pool_expr_1): Fix formatting.
11737         (rs6000_legitimize_reload_address): Likewise.
11738
11739 Tue Feb 19 20:13:57 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11740
11741         * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
11742         now that we have one.
11743
11744 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
11745
11746         * tree.h (struct tree_common): Remove aux.  Add unused_0 at
11747         end of first block of bitfields (which was only seven bits);
11748         rename dummy to unused_1; remove comment which is no longer true.
11749
11750 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
11751
11752         * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
11753
11754 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
11755
11756         PR 5399
11757         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
11758         if generating PIC.
11759
11760         PR 5054
11761         * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
11762         arm_is_longcall_p rather than inspecting call-type cookie
11763         directly.
11764         (call_value_insn) [TARGET_THUMB]: Likewise.
11765
11766 2002-02-19  Graham Stott  <grahams@redhat.com>
11767
11768         * config/i386/i386.c (ix86_expand_builtin): Fix typo.
11769
11770 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
11771
11772         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
11773         ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
11774         (FP_SAVE_INLINE): Delete.
11775
11776         * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
11777         * config/rs6000/eabi.asm: Remove ABI save restore routines.
11778         * config/rs6000/t-ppccomm: Build crtsavres.o.
11779         * config/rs6000/crtsavres.asm: New file.
11780
11781 2002-02-19  Philip Blundell  <philb@gnu.org>
11782
11783         * config/arm/arm.c (use_return_insn): Don't reject interrupt
11784         functions.
11785         (arm_compute_save_reg_mask): Save LR for interrupt functions too.
11786         (output_return_instruction): Allow interrupt functions to return with
11787         ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
11788         (arm_expand_prologue): Subtract 4 before stacking LR in an
11789         interrupt function.
11790
11791 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
11792
11793         * config/arm/arm.c (arm_encode_call_attribute): Operate on any
11794         decl, not just FUNCTION_DECL.
11795         (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
11796         (arm_assemble_integer): Likewise.
11797         * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
11798         marked local.
11799
11800 2002-02-19  matthew green  <mrg@eterna.com.au>
11801
11802         * config.gcc (sparc-*-netbsdelf*): Enable target.
11803         (sparc64-*-netbsd*): New target.
11804         * config/sparc/netbsd-elf.h: New file.
11805         * config/sparc/t-netbsd64: New file.
11806
11807 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
11808
11809         * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
11810
11811 2002-02-19  Ryan T. Sammartino <ryants@shaw.ca>
11812
11813         * doc/invoke.texi: explicitly list the style guidelines that
11814         -Weffc++ checks for.
11815
11816 Tue Feb 19 12:37:23 CET 2002  Jan Hubicka  <jh@suse.cz>
11817
11818         * regmove.c (regmove_optimize): Avoid increasing of register pressure.
11819
11820 2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
11821
11822         PR other/5718
11823         * gcc.c (cpp_unique_options): Treat -o as indicating object file
11824         only if not -E.  If -E, pass -o through to the preprocessor.
11825
11826 2002-02-19  Kazu Hirata  <kazu@hxi.com>
11827
11828         * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
11829         register number with an appropriate macro.
11830
11831 2002-02-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
11832
11833         * doc/rtl.texi (Constants): Close @code tag.
11834
11835 2002-02-19  Aldy Hernandez  <aldyh@redhat.com>
11836
11837         * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
11838         ("mmx_uavgv4hi3"): Same.
11839         ("pmulhrwv4hi3"): Same.
11840
11841         * tree-inline.c (walk_tree): Handle vectors.
11842
11843         * c-common.c (constant_expression_warning): Handle vectors.
11844         (overflow_warning): Same.
11845
11846         * sched-deps.c (sched_analyze_2): Handle vectors.
11847
11848         * rtlanal.c (rtx_unstable_p): Handle vectors.
11849         (rtx_varies_p): Same.
11850         (count_occurrences): Same.
11851         (regs_set_between_p): Same.
11852         (modified_between_p): Same.
11853         (modified_in_p): Same.
11854         (volatile_insn_p): Same.
11855         (volatile_refs_p): Same.
11856         (side_effects_p): Same.
11857         (may_trap_p): Same.
11858         (inequality_comparisons_p): Same.
11859         (replace_regs): Same.
11860         (computed_jump_p_1): Same.
11861
11862         * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
11863         argument.
11864         (inner_mode_array): New.
11865         (copy_rtx): Handle vectors.
11866         (copy_most_rtx): Same.
11867         (rtx_equal_p): Same.
11868         (get_mode_alignment): Adjust for vectors.
11869
11870         * resource.c (mark_referenced_resources): Handle vectors.
11871         (mark_set_resources): Same.
11872
11873         * reload1.c (eliminate_regs): Handle vectors.
11874         (elimination_effects): Same.
11875         (scan_paradoxical_subregs): Same.
11876
11877         * reload.c (subst_reg_equivs): Handle vectors.
11878
11879         * regrename.c (scan_rtx): Handle vectors.
11880
11881         * regclass.c (reg_scan_mark_refs): Handle vectors.
11882
11883         * recog.c (find_single_use_1): Handle vectors.
11884
11885         * local-alloc.c (equiv_init_varies_p): Handle vectors.
11886         (contains_replace_regs): Same.
11887         (memref_referenced_p): Same.
11888
11889         * integrate.c (copy_rtx_and_substitute): Handle vectors.
11890         (subst_constants): Same.
11891
11892         * genattrtab.c (attr_copy_rtx): Handle vectors.
11893         (encode_units_mask): Same.
11894         (clear_struct_flag): Same.
11895         (count_sub_rtxs): Same.
11896
11897         * gcse.c (want_to_gcse_p): Handle vectors.
11898         (oprs_unchanged_p): Same.
11899         (hash_expr_1): Same.
11900         (oprs_not_set_p): Same.
11901         (expr_killed_p): Same.
11902         (compute_transp): Same.
11903         (store_ops_ok): Same.
11904
11905         * function.c (purge_addressof_1): Do not allow paradoxical subregs
11906         of vectors.
11907         (fixup_var_refs_1): Same.
11908         (instantiate_virtual_regs_1): Same.
11909
11910         * fold-const.c (operand_equal_p): Handle vectors.
11911         (fold): Same.
11912         (rtl_expr_nonnegative_p): Same.
11913
11914         * flow.c (mark_used_regs): Handle vectors.
11915
11916         * df.c (df_uses_record): Handle vectors.
11917
11918         * cselib.c (cselib_subst_to_values): Handle vectors.
11919         (cselib_mem_conflict_p): Same.
11920         (hash_rtx): Same.
11921
11922         * cse.c (canon_reg): Handle vectors.
11923         (fold_rt): Same.
11924         (cse_process_notes): Same.
11925         (count_reg_usage): Same.
11926         (canon_hash): Same.
11927
11928         * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
11929
11930         * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
11931
11932         * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
11933         (gen_rtx): Handle CONST_VECTOR.
11934         (gen_const_vector_0): New.
11935         (copy_rtx_if_shared): CONST_VECTORs can be shared.
11936         (reset_used_flags): Same.
11937         (copy_insn_1): Same.
11938         (initializer_constant_valid_p): Handle VECTOR_CST.
11939
11940         * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
11941
11942         * doc/rtl.texi (Constants): Document const_vector.
11943         (CONST0_RTX): Update for vectors.
11944         (RTL sharing): Same.
11945
11946         * print-tree.c (print_node): Add case for VECTOR_CST.
11947
11948         * tree.h (TREE_VECTOR_CST_ELTS): New.
11949         (struct tree_vector): New.
11950         (union tree_node): Add vector node.
11951         (build_vector): Add prototype.
11952
11953         * tree.def (VECTOR_CST): New.
11954
11955         * tree.c (build_vector): New.
11956
11957         * expmed.c (make_tree): Handle CONST_VECTOR.
11958
11959         * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
11960         (CONST_VECTOR_ELT): New.
11961         (CONST_VECTOR_NUNITS): New.
11962
11963         * machmode.h (GET_MODE_INNER): New.
11964         (DEF_MACHMODE): Accept 8th arg.
11965
11966         * machmode.def: Add 8th argument for vector inner mode.
11967         Add inner vector modes for vectors.
11968
11969         * rtl.def (VEC_CONST): Remove.
11970         (CONST_VECTOR): New.
11971
11972         * expr.c (clear_storage): Allow vectors.
11973         (is_zeros_p): Handle VECTOR_CST.
11974
11975         * varasm.c (output_constant_pool): Handle vectors.
11976         (rtx_const): Add veclo and vechi fields.
11977         (kind): Add RTX_VECTOR.
11978         (decode_rtx_const): Add case for vector.
11979
11980         * config/rs6000/rs6000-protos.h: Add zero_constant.
11981
11982         * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
11983         constants.  Force easy vector constants into memory.
11984         (easy_vector_constant): New.
11985         (emit_easy_vector_constant): New.
11986         (rs6000_legitimize_reload_address): Do not generate bad reloads on
11987         darwin.
11988
11989         * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
11990         instruction does.
11991         ("altivec_lvxl"): Same.
11992         (altivec_lvebx): Same.
11993         (altivec_lvehx): Same.
11994         (altivec_lvewx): Same.
11995         ("*movv4si_const0"): New.
11996         ("*movv4sf_const0"): New.
11997         ("*movv8hi_const0"): New.
11998         ("*movv16qi_const0"): New.
11999
12000 2002-02-18  Kazu Hirata  <kazu@hxi.com>
12001
12002         * config/h8300/h8300.c (notice_update_cc): Use
12003         cc_status.value2.
12004
12005 2002-02-18  Kazu Hirata  <kazu@hxi.com>
12006
12007         * config/h8300/h8300.md (divmod patterns): Change the
12008         constraints for operands[1] to register_operand.
12009
12010 2002-02-18  Kazu Hirata  <kazu@hxi.com>
12011
12012         * config/h8300/h8300-protos.h: Remove the prototype for
12013         p_operand.
12014         * config/h8300/h8300.c (p_operand): Remove.
12015         * config/h8300/h8300.md: Replace p_operand with
12016         const_int_operand.
12017
12018 2002-02-18 Philip Blundell <pb@nexus.co.uk>
12019
12020         * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
12021         comment.
12022         (output_return_instruction): Allow use of LDR to unstack
12023         return addresss even for interrupt handlers or when
12024         interworking.  If compiling for ARMv5, use interworking-safe
12025         return instructions by default.  Remove duplicated code and
12026         lengthy "strcat" sequences.
12027
12028 2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
12029
12030         * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
12031         (LINK_EH_SPEC): Define.
12032         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
12033
12034 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
12035
12036         * config/s390/s390.c (s390_emit_prologue): Do not set the
12037         frame_related flag for call-clobbered registers.
12038
12039 Mon Feb 18 15:07:35 CET 2002  Jan Hubicka  <jh@suse.cz>
12040
12041         * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
12042         (construct_container): Fix handling of SSE operands.
12043         (ix86_expand_builtin): Fix handling of 64bit pointers.
12044         (mmx_maskmovq_rex): New pattern.
12045
12046 Mon Feb 18 11:55:55 CET 2002  Jan Hubicka  <jh@suse.cz>
12047
12048         * regrename.c (kill_set_value): Handle subregs properly.
12049
12050 2002-02-18  David Billinghurst <David.Billinghurst@riotinto.com>
12051
12052         * objc/objc-act.c (handle_impent): Remove leading '*'
12053         from objc_class_name.
12054
12055 2002-02-17  Richard Henderson  <rth@redhat.com>
12056
12057         * config/alpha/alpha.c (some_small_symbolic_operand,
12058         some_small_symbolic_operand_1, split_small_symbolic_operand,
12059         split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
12060         Handle small SYMBOL_REFs anywhere, not just inside memories.
12061         * config/alpha/alpha-protos.h: Update.
12062         * config/alpha/alpha.h (PREDICATE_CODES): Update.
12063         * config/alpha/alpha.md (small symbolic operand splitter): Update.
12064
12065 2002-02-17  Roland McGrath  <roland@frob.com>
12066
12067         * config.gcc (powerpc-*-gnu-gnualtivec*,
12068         powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
12069         * config/rs6000/gnu.h: New file.
12070         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
12071         Grok "gnu" in rs6000_abi_name.
12072         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
12073         CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
12074         Grok -mcall-gnu analogous to -mcall-linux et al.
12075         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
12076         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
12077         (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
12078
12079 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
12080
12081         PR c/3444:
12082         * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
12083         shortening.
12084
12085 2002-02-17  Philipp Thomas  <pthomas@suse.de>
12086
12087         * config/cris/cris.h: Undefine STARTFILE_SPEC and
12088         ENDFILE_SPEC before (re)defining them.
12089
12090 2002-02-17  Kazu Hirata  <kazu@hxi.com>
12091
12092         * config/h8300/h8300.c: Fix formatting.
12093         * config/h8300/h8300.h: Likewise.
12094
12095 2002-02-17  Philipp Thomas  <pthomas@suse.de>
12096
12097         * doc/tm.texi: Explain why empty strings should not be
12098         marked for translation.
12099
12100 2002-02-17  Philipp Thomas  <pthomas@suse.de>
12101
12102         * final.c (output_operand_lossage): Changed to accept
12103         printf style arguments. Change calls where necessary.
12104         * output.h (output_operand_lossage): Change declaration
12105         accordingly. Update copyright.
12106         * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
12107         config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
12108         Update copyright date where necessary.
12109
12110         * config/i386/i386.c (print_operand): Likewise. Remove use of
12111         sprintf.
12112
12113         * config/cris/cris.c (cris_operand_lossage): Likewise.
12114         Rename parameter so that exgettext recognizes it as
12115         translatable message.
12116         (LOSE_AND_RETURN): Rename parameter to msgid.
12117
12118 2002-02-17  Kazu Hirata  <kazu@hxi.com>
12119
12120         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
12121         hard coded register number with an appropriate macro.
12122         (HARD_REGNO_MODE_OK): Likewise.
12123         (ARG_POINTER_REGNUM): Likewise.
12124         (STATIC_CHAIN_REGNUM): Likewise.
12125         (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
12126         * config/h8300/h8300.md (define_constants): Define more
12127         register numbers.
12128
12129 2002-02-17  Philipp Thomas  <pthomas@suse.de>
12130
12131         * config/i386/i386.h: Don't mark empty strings for translation.
12132
12133 2002-02-16  H.J. Lu <hjl@gnu.org>
12134
12135         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
12136
12137 2002-02-16  Zack Weinberg  <zack@codesourcery.com>
12138
12139         * cppinit.c (merge_include_chains): Check for brack being
12140         NULL before attempting to merge it with qtail.
12141
12142 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
12143
12144         * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
12145         DBX_DEBUG.
12146
12147 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12148
12149         * pa/t-pa, pa/t-pro, som.h: Revert last patch.
12150
12151 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12152
12153         * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
12154         * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
12155         * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
12156
12157 Sat Feb 16 13:48:50 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12158
12159         * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
12160         now only if !TARGET_FIX.
12161         (*movsi_nt_vms_fix): New pattern.
12162
12163 2002-02-16  Douglas B Rupp  <rupp@gnat.com>
12164
12165         * config/alpha/alpha.c: Implement null frame procedure types on VMS.
12166         (alpha_procedure_type): Replaces alpha_is_stack_procedure.
12167         (alpha_sa_mask, alpha_sa_size): Reflect above change.
12168         (alpha_pv_save_size, alpha_expand_prologue): Likewise.
12169         (alpha_start_function, alpha_expand_epilogue): Likewise.
12170         (unicosmk_gen_dsib): Likewise.
12171
12172 Sat Feb 16 13:39:09 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12173
12174         * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
12175
12176 2002-02-16  Ulrich Weigand  <uweigand@de.ibm.com>
12177
12178         * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
12179         check_and_change_labels, s390_final_chunkify): Delete.
12180         (s390_split_branches, s390_chunkify_pool): New functions.
12181         (s390_function_prologue): Call them.
12182
12183         * config/s390/s390.h (S390_REL_MAX): Delete.
12184         (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
12185
12186         * config/s390/s390.md (cjump, icjump, jump): Fix length
12187         attribute calculation.
12188
12189
12190 2002-02-15  David Edelsohn  <edelsohn@gnu.org>
12191
12192         * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
12193         * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
12194
12195 2002-02-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12196
12197         * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
12198         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
12199         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
12200
12201 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
12202
12203         * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
12204
12205 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
12206
12207         * reload.c (find_dummy_reload): Check that an output register
12208         is valid for its mode.
12209
12210 2002-02-14  Alexandre Oliva  <aoliva@redhat.com>
12211
12212         * combine.c (known_cond): After replacing the REG of a SUBREG, try
12213         to simplify it.
12214
12215         * function.c (assign_parms): Demote promoted argument passed by
12216         transparent reference.
12217
12218 2001-02-14      Joel Sherrill <joel@OARcorp.com>
12219
12220         * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
12221         -Acpu() and -Amachine() to eliminate warnings.
12222
12223 2002-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
12224
12225         * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
12226
12227 2002-02-14  Kazu Hirata  <kazu@hxi.com>
12228
12229         * config/h8300/h8300-protos.h: Update the prototype for
12230         const_costs.
12231         * config/h8300/h8300.c (const_costs): Treat SET as a little
12232         more expensive operation.
12233         * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
12234         reference to const_costs.
12235
12236 2002-02-14  Hans-Peter Nilsson  <hp@axis.com>
12237
12238         * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
12239
12240 2002-02-14  Jakub Jelinek  <jakub@redhat.com>
12241
12242         PR c/5503:
12243         * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
12244         use arguments from newtype.
12245
12246 2002-02-13  Eric Christopher  <echristo@redhat.com>
12247
12248         * config/mips/mips.c (override_options): Add check for march/mipsX
12249         on the same command line. Fix error message in cpu processing.
12250         Remove architecture and ISA checks.
12251
12252 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
12253
12254         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
12255
12256         * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
12257
12258 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
12259
12260         * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
12261         alternatives.
12262         ("*movv8hi_internal1"): Same.
12263         ("*movv16qi_internal1"): Same.
12264         ("*movv4sf_internal1"): Same.
12265
12266         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
12267         not push_reload for altivec modes.
12268
12269 2002-02-13  Joel Sherrill  <joel@OARcorp.com>
12270
12271         * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
12272         all RTEMS targets including removal of #includes from config/*/rtems*.h
12273         file and adding them to tm_file setting. Added xm_defines=POSIX to
12274         many targets.
12275         * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
12276         * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
12277         * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
12278         * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
12279         * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
12280         config/m68k/rtemself.h: Ditto.
12281         * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
12282         config/mips/rtems64.h: Ditto.
12283         * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
12284         * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
12285         Ditto.
12286         * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
12287         config/sparc/rtemself.h: Ditto.
12288         * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
12289         * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
12290         arm-rtems stanza closer to other arm-elf targets and made arm-rtems
12291         more like arm-elf.
12292         * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
12293         config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
12294         target made more similar to i386-elf.
12295         * config/i386/t-rtems-i386: Added soft float support and multilibs.
12296         * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
12297         be similar to config/m68k/t-m68kelf.
12298         * gthr-rtems.h: Encapsulate with extern "C" for C++.
12299
12300 Wed Feb 13 23:41:15 CET 2002  Jan Hubicka  <jh@suse.cz>
12301
12302         * regmove.c (kill_value): Handle subregs.
12303
12304 Wed Feb 13 23:34:30 CET 2002  Jan Hubicka  <jh@suse.cz>
12305
12306         * i386.md (mul patterns): Allow memory operand to be first;
12307         add expanders where needed; fix constraints.
12308         (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
12309         Allow memory operand to be the first.
12310
12311         * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
12312         operands.
12313
12314 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
12315
12316         PR c/5681:
12317         * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
12318         GET_MODE (x).
12319
12320 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
12321
12322         PR optimization/5547:
12323         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
12324         all valid IA-32 address modes involving non-scaled %ebx and
12325         GOT/GOTOFF as displacement.
12326
12327 2002-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
12328
12329         * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
12330         after emitting ltorg insns.
12331
12332         * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
12333         *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
12334         *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
12335         *abssf2): Fix "op_type" attribute.
12336
12337 2002-02-13  Douglas B Rupp  <rupp@gnat.com>
12338
12339         * mkconfig.sh: Avoid using a subshell redirect.
12340         ($output.T): Change to $(output)T.
12341         (ENABLE_NLS): Remove unneeded undef.
12342
12343         * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
12344         * config/alpha/x-vms (libsubdir): Define.
12345
12346         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
12347         register frame procedures. Optimize retrieving context.
12348
12349         * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
12350         (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
12351         * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
12352
12353 Wed Feb 13 09:45:08 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12354
12355         * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
12356         Make same change as for find_base_value.
12357
12358 2002-02-13  Kazu Hirata  <kazu@hxi.com>
12359
12360         * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
12361         of QImode and SImode.
12362
12363 2002-02-13  Kazu Hirata  <kazu@hxi.com>
12364
12365         * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
12366         length computation of movsi.
12367         * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
12368
12369 2002-02-13  Kazu Hirata  <kazu@hxi.com>
12370
12371         * config/h8300/h8300.md (subqi3): Tighten the predicate for
12372         operands[2] to register_operand.
12373
12374 Wed Feb 13 10:35:56 CET 2002  Jan Hubicka  <jh@suse.cz>
12375
12376         * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
12377
12378 2002-02-12  Aldy Hernandez  <aldyh@redhat.com>
12379
12380         * config/rs6000/rs6000.md: Use predicate altivec_register_operand
12381         for altivec_lvx* and altivec_stvx*.
12382         ("*movv4si_internal"): Add constraint for loading from GPRs.
12383         ("*movv8hi_internal1"): Same.
12384         ("*movv16qi_internal1"): Same.
12385         ("*movv4sf_internal1"): Same.
12386
12387         * config/rs6000/rs6000.c (altivec_register_operand): New.
12388
12389         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
12390         altivec_register_operand.
12391
12392 2002-02-13  Hans-Peter Nilsson  <hp@bitrange.com>
12393
12394         * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
12395         handle SYMBOL_REF.
12396
12397 2002-02-13  Stan Shebs  <shebs@apple.com>
12398
12399         * c-typeck.c (digest_init): Handle vectors.
12400         (really_start_incremental_init): Same.
12401         (pop_init_level): Same.
12402         (process_init_element): Same.
12403
12404         * varasm.c (output_constant): Same.
12405
12406         * expr.c (clear_storage): Same.
12407         (store_constructor): Same.
12408
12409 2002-02-12  Eric Christopher  <echristo@redhat.com>
12410
12411         * explow.c (hard_function_value): Add comment explaining
12412         signed/unsigned comparison.
12413
12414 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
12415
12416         * jump.c (never_reached_warning): Add finish argument.
12417         If finish is NULL, stop on CODE_LABEL, otherwise stop before first
12418         real insn after end.
12419         * rtl.h (never_reached_warning): Adjust prototype.
12420         * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
12421         * cfgrtl.c (flow_delete_block): Pass b->end as finish to
12422         never_reached_warning.
12423
12424 2002-02-12  Graham Stott  <grahams@redhat.com>
12425
12426         * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
12427
12428 2002-02-12  Kazu Hirata  <kazu@hxi.com>
12429
12430         * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
12431         logical shifts on H8/300.
12432         (shift_alg_si): Improve several shifts on H8/300.
12433         (get_shift_alg): Likewise.
12434
12435 2002-02-12  Graham Stott  <grahams@redhat.com>
12436
12437         * config/pa/pa.c (compute_movstrsi_length): Fix typos.
12438
12439 Tue Feb 12 10:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12440
12441         * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
12442         Handle #ifdef POINTERS_EXTEND_UNSIGNED.
12443
12444 2002-02-11  Hans-Peter Nilsson  <hp@bitrange.com>
12445
12446         * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
12447         non-CONST_INT through default_assemble_integer.
12448         <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
12449         <case 8>: Abort for CONST_DOUBLE.
12450
12451 2002-02-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12452
12453         * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
12454         is specified.
12455         * config/pa/pa-linux.h (LIB_SPEC): Delete.
12456         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
12457
12458 2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
12459
12460         * config/stormy16/stormy16.md (zero_extendqihi2): New.
12461
12462 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
12463
12464         * regrename.c (regrename_optimize): Don't accept a
12465         part-clobbered register if the replaced register is not part
12466         clobbered.
12467
12468         * calls.c (store_one_arg): In the non-BLKmode non-partial case,
12469         take padding into account when computing the argument value.
12470
12471         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
12472
12473         * combine.c (try_combine): Apply substitutions in
12474         CALL_INSN_FUNCTION_USAGE too.
12475
12476 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
12477
12478         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
12479         __builtin_altivec_abs*.
12480         (bdesc_abs): New.
12481
12482         * config/rs6000/rs6000.h (rs6000_builtins): Add
12483         ALTIVEC_BUILTIN_ABS*.
12484
12485         * config/rs6000/altivec.h: Use const char for builtins expecting
12486         literals.
12487         (vec_abs): New versions for C and C++.
12488         (vec_abss): Same.
12489
12490 2002-02-10  Kazu Hirata  <kazu@hxi.com>
12491
12492         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
12493         using Pmode.
12494
12495 2002-02-10  Kazu Hirata  <kazu@hxi.com>
12496
12497         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
12498         constant definition from h8300.md.
12499         (FRAME_POINTER_REGNUM): Likewise.
12500         * config/h8300/h8300.md (define_constants): Add FP_REG.
12501
12502 2002-02-10  Kazu Hirata  <kazu@hxi.com>
12503
12504         * config/h8300/h8300.c (print_operand): Remove redundant code.
12505
12506 2002-02-10  Kazu Hirata  <kazu@hxi.com>
12507
12508         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
12509         * config/h8300/h8300.c (byte_reg): Make it static.
12510
12511 2002-02-10  Richard Henderson  <rth@redhat.com>
12512
12513         PR c/5623
12514         * c-typeck.c (incomplete_type_error): Handle flexible array members.
12515
12516 2002-02-10  Richard Henderson  <rth@redhat.com>
12517
12518         PR c++/5624
12519         * tree.c (append_random_chars): Don't abort if main_input_filename
12520         does not exist.
12521
12522 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
12523
12524         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
12525
12526 2002-02-10  Kazu Hirata  <kazu@hxi.com>
12527
12528         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
12529         (pushhi1): Likewise.
12530
12531 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12532
12533         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
12534         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
12535
12536 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
12537
12538         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
12539         remove MASK_VIS.
12540         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
12541
12542 2002-02-09  Kazu Hirata  <kazu@hxi.com>
12543
12544         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
12545         a half of an SImode register on H8/300.
12546
12547 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
12548
12549         * i386.md (movdi_2): Add missing '!'.
12550
12551 2002-02-09  Kazu Hirata  <kazu@hxi.com>
12552
12553         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
12554         definitions.
12555
12556 2002-02-09  Kazu Hirata  <kazu@hxi.com>
12557
12558         * config/h8300/h8300.md (length): Correct the distance valid
12559         for the short branch.
12560
12561 2002-02-09  Kazu Hirata  <kazu@hxi.com>
12562
12563         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
12564
12565 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
12566
12567         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
12568         registers in SImode.
12569         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
12570         part-clobbered.
12571
12572         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
12573         patch.
12574
12575         Contribute sh64-elf.
12576         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
12577         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
12578         (sh_cannot_modify_jumps_p): New function.
12579         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
12580         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
12581         (sh_ms_bitfield_layout_p): New function.
12582         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
12583                     Zack Weinberg  <zack@codesourcery.com>
12584         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
12585         expand_simple_binop instead of expand_binop.
12586         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
12587         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
12588         use of .quad and .uaquad.
12589         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
12590         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
12591         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
12592         * config/sh/sh.md (movdi_const, movdi_const_32bit,
12593         movdi_const_16bit): Make sure all CONSTs have modes.
12594         (sym2PIC): Ditto, but by adjusting all callers.
12595         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
12596         if the prologue calls the SHmedia argument decoder or register
12597         saver.
12598         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
12599         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
12600         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
12601         (sh_expand_epilogue): Don't emit USE of return target register.
12602         (prepare_move_operands): Legitimize DImode PIC addresses.
12603         (sh_media_register_for_return): Skip tr0, used to initialize the
12604         PIC register.
12605         (sh_expand_prologue): Remove explicit USE of return register.
12606         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
12607         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
12608         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
12609         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
12610         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
12611         EXTRA_CONSTRAINT_T.
12612         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
12613         (MOVI_SHORI_BASE_OPERAND_P): New.
12614         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
12615         (EXTRA_CONSTRAINT_T): Define in terms of them.
12616         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
12617         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
12618         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
12619         alternatives supporting TARGET_REGS.
12620         (UNSPEC_GOTPLT): New constant.
12621         (movdi split): Move incrementing of LABEL_NUSES...
12622         (movdi_const, movdi_const_32bit): Here.  Use
12623         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
12624         (movdi_const_16bit): New.
12625         (call, call_value) [flag_pic]: Use GOTPLT.
12626         (call_pop, call_value_pop): New expands.
12627         (call_pop_compact, call_pop_rettramp): New insns.
12628         (call_value_pop_compact, call_value_pop_rettramp): New insns.
12629         (sibcall) [flag_pic]: Use GOT.
12630         (builtint_setjmp_receiver): Remove bogus, unused expand.
12631         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
12632         (*pt, *ptb, ptrel): New insns.
12633         (sym2GOT): Handle DImode GOT.
12634         (sym2GOTPLT, symGOTPLT2reg): New expands.
12635         (sym2PIC): New expand.
12636         (shcompact_return_tramp): Use GOTPLT to return trampoline.
12637         (shcompact_return_tramp_i): Use return register explicitly.
12638         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
12639         disable flag_reorder_blocks.
12640         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
12641         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
12642         clobbers, for clarity.
12643         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
12644         restoring of r0 in macl as MAYBE_DEAD.
12645         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
12646         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
12647         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
12648         alter_subreg all over.
12649         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
12650         reload, instead of emitting instructions that would require
12651         reloading.
12652         (casesi_load_media): Add missing modes.
12653         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
12654         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
12655         as used if the argument decoder is called.
12656         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
12657         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
12658         Pmode, then extend it to DImode if necessary.
12659         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
12660         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
12661         constants in FPU-enabled SHmedia, let them be loaded from memory.
12662         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
12663         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
12664         Adjust whitespace in assembly output templates.
12665         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
12666         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
12667         mode of if_then_else.
12668         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
12669         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
12670         sh.h.
12671         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
12672                     Joern Rennecke <amylaar@redhat.com>
12673         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
12674         (SUBTARGET_CPP_PTR_SPEC): New.
12675         (SUBTARGET_CPP_SPEC): Remove.
12676         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
12677         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
12678         Fix typo in previous checkin.
12679         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
12680         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
12681         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
12682                     Alexandre Oliva  <aoliva@redhat.com>
12683         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
12684         what single FP register can hold for SHmedia target.
12685         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
12686                     Alexandre Oliva  <aoliva@redhat.com>
12687         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
12688         Do not split into SUBREG.
12689         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
12690         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
12691         and added new functions as specified in SH5 ABI r9.
12692         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
12693         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
12694         8-byte boundary.
12695         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
12696         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
12697         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
12698         and consttable_window_ends.
12699         2001-06-03  Graham Stott  <grahams@redhat,com>
12700         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
12701         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
12702         * config/sh/sh.c (print_operand): Handle floating-point pair,
12703         vector and matrix registers.
12704         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
12705         vector modes into account.
12706         * config/sh/sh.md (movv2sf): Split move between registers into
12707         movdf.
12708         (movv4sf, movv16sf): Introduce insns that get split only after
12709         reload.
12710         * config/sh/shmedia.h: Fix Copyright dates.
12711         * config/sh/ushmedia.h: Likewise.  Move loop counter
12712         declarations into conditionals that uses them.
12713         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
12714         loop boundary.
12715         * config/sh/sshmedia.h: Fix Copyright dates.
12716         (sh_media_PUTCFG): Fix constraints.
12717         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
12718         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
12719         ptrmemfunc_vbit_in_delta for SH5.
12720         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
12721         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
12722         * invoke.texi: Likewise.
12723         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
12724         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
12725         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
12726         GCC_pop_shmedia_regs_nofpu): New global symbols.
12727         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
12728         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
12729         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
12730         compact function with nonlocal labels.
12731         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
12732         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
12733         (initial_elimination_offset): Account for their stack space.
12734         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
12735         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
12736         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
12737         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
12738         least one of the operands to be a register.
12739         (movv2sf): Likewise.  Renamed to movv2sf_i.
12740         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
12741         prepare_move_operands() before emitting SHmedia insns.
12742         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
12743         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
12744         Don't save nor initialize r12.  Don't mis-align the stack.
12745         Pad the code with a nop.
12746         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
12747         stack.
12748         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
12749         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
12750         [__SHMEDIA__]: Implement.
12751         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
12752         * config/sh/sh.md: Set latency of `pt' closer to reality.
12753         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
12754         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
12755         Set move, load and store type attributes.
12756         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
12757         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
12758         profiling.
12759         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
12760         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
12761         * config/sh/sh.c (sh_media_register_for_return): New function.
12762         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
12763         branch-target register.
12764         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
12765         * config/sh/sh.md (return_media_i): Use any call-clobbered
12766         branch-target register.
12767         (return_media): If r18 wasn't copied in the prologue, copy it
12768         here.
12769         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
12770         Clear class FP0_REGS.
12771         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
12772         from elf.h.
12773         2001-03-08  DJ Delorie  <dj@redhat.com>
12774         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
12775         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
12776         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
12777         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
12778         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
12779         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
12780         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
12781         return value correctly for call_cookie.
12782         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
12783         * config/sh/crt1.asm (start): Modified so as to call
12784         ___setup_argv_and_call_main.
12785         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
12786         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
12787         SHmedia mode.
12788         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
12789         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
12790         (STRIP_NAME_ENCODING): Use it.
12791         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
12792         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
12793         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
12794         prepare_scc_operands().
12795         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
12796         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
12797         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
12798         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
12799         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
12800         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
12801         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
12802         used in shcompact_incoming_args.
12803         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
12804         change.
12805         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
12806         mode.
12807         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
12808         Adjust accordingly.
12809         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
12810         Simplify.  Adjust.  Add sanity check.
12811         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
12812         FPU_SINGLE_BIT.
12813         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
12814         TARGET_SHCOMPACT.
12815         (udivsi3, divsi3): Use them.
12816         (force_mode_for_call): New insn.
12817         (call, call_value, sibcall_value): Emit it before SHcompact
12818         calls.
12819         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
12820         * config/sh/sh.md (call, call_value, sibcall): Make sure the
12821         call cookie is non-NULL before taking its value.
12822         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
12823         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
12824         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
12825         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
12826         block.
12827         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
12828         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
12829         temporary for stack adjusts.  Use MACL and MACH to pass
12830         arguments to shcompact_incoming_args.
12831         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
12832         clobber r1.
12833         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
12834         (nested_trampoline): Load static chain address into r1.
12835         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
12836         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
12837         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
12838         fp_arith_reg_operand().
12839         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
12840         * config/sh/sh.md (casesi): Sign-extend the first two operands,
12841         and use signed compares for them.
12842         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
12843         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
12844         ones properly aligned.
12845         (find_barrier): Account for extra alignment needed for 8-byte wide
12846         constants.
12847         (machine_dependent_reorg): Require a label for the second 4-byte
12848         constant after an 8-byte one.
12849         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
12850         change.
12851         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
12852         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
12853         last_float when switching float modes.
12854         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
12855         auto-increment for general-purpose registers.
12856         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
12857         result.
12858         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
12859         for stack adjust.
12860         * config/sh/sh.c (sh_builtin_saveregs): Support using all
12861         registers for varargs.
12862         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
12863         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
12864         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
12865         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
12866         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
12867         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
12868         call_cookie accordingly.
12869         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
12870         (SHCOMPACT_BYREF): Likewise.
12871         (SHCOMPACT_FORCE_ON_STACK): New macro.
12872         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
12873         (sh_builtin_saveregs): Likewise.
12874         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
12875         shcompact_incoming_args): Use new shift values.  Support
12876         sequences of consecutive and non-consecutive pushes/pops.
12877         * config/sh/sh.md (return): Don't explicitly use PR_REG.
12878         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
12879         * config/sh/sh.h (TEXT_SECTION): Define.
12880         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
12881         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
12882         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
12883         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
12884         return values on FPU-enabled SHmedia.
12885         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
12886         FPU-enabled SHmedia.
12887         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
12888         value is returned in a non-FP reg and is not returned by
12889         reference.
12890         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
12891         jump_ind.
12892         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
12893         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
12894         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
12895         quad-aligned to be passed by callee-copy reference.
12896         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
12897         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
12898         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
12899         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
12900         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
12901         copying low-numbered FP regs to r7 and r8.
12902         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
12903         FP regs to general-purpose regs only if the copy was passed on the
12904         stack.
12905         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
12906         copying FP reg to r9.
12907         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
12908         copy FP regs to general-purpose regs only in outgoing calls.
12909         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
12910         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
12911         HOST_WIDE_INT.
12912         * config/sh/sh.h (struct sh_args): Document all fields.
12913         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
12914         passed partially on the stack should not consider making
12915         sibcalls.
12916         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
12917         stack_regs only for incoming calls.  When passing FP args,
12918         make sure there are FP regs available before modifying
12919         call_cookie.
12920         (SHCOMPACT_BYREF): Pass double args in general-purpose
12921         registers by reference.
12922         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
12923         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
12924         attempt to generate sibcalls if the caller got any arguments
12925         by reference.
12926         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
12927         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
12928         to 8-byte boundaries.
12929         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
12930         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
12931         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
12932         stored in the stack.
12933         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
12934         for the offsets to have the ISA bit set.
12935         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
12936         invocation.  Use beq instead of bgt to mark end of sequence of
12937         loads.
12938         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
12939         bgt to mark end of sequence of stores.
12940         * config/sh/sh.c (arith_operand): Don't check whether
12941         CONST_OK_FOR_J for now.
12942         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
12943         instead of long for conversion.
12944         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
12945         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
12946         before passing it to fprintf.
12947         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
12948         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
12949         Call set_fpscr before reading/writing SR.
12950         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
12951         Call set_fpscr.
12952         * config/sh/lib1funcs.asm: Add `.align 2' directives before
12953         SHmedia code.
12954         (FMOVD_WORKS): Define on SH5 with FPU.
12955         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
12956         setting.
12957         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
12958         _fpscr_values.
12959         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
12960         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
12961         address.
12962         (ia_main_table): Ditto.
12963         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
12964         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
12965         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
12966         the definitions from sh.h.
12967         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
12968         TARGET_SH5.
12969         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
12970         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
12971         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
12972         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
12973         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
12974         Increment LABEL_NUSES.
12975
12976         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
12977         TARGET_SH5.
12978         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
12979         defined.
12980         * config/sh/elf.h (SIZE_TYPE): Likewise.
12981         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
12982         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
12983         shcompact_incoming_args): Load switch table addresses using
12984         datalabel.
12985         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
12986         (NO_BUILTIN_SIZE_TYPE): Define.
12987         (SIZE_TYPE): Don't define.
12988         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
12989         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
12990         definition of __SH5__=32 for -m5-compact-nofpu.
12991         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
12992         ADDR_DIFF_VEC.
12993         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
12994         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
12995         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
12996         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
12997         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
12998         (INSN_LENGTH_ALIGNMENT): Likewise.
12999         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
13000         * config/sh/sh.md (call, call_value, sibcall): Simplify
13001         copying of non-branch-target register.
13002         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
13003         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
13004         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
13005         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
13006         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
13007         floating-point values as structs.
13008         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
13009         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
13010         general-purpose register.
13011         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
13012         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
13013         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
13014         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
13015         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
13016         (ENCODE_SECTION_INFO): Enclose variables and constants in
13017         DATALABEL unspecs.
13018         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
13019         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
13020         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
13021         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
13022         only for LABEL_REFs.  For SYMBOL_REFs, prepend
13023         SH_DATALABEL_ENCODING to the symbol name.
13024         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
13025         convert_mode().
13026         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
13027         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
13028         UNSPEC_DATALABEL.
13029         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
13030         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
13031         (DATALABEL_REF_P): Don't require CONST.
13032         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
13033         REL label.
13034         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
13035         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
13036         right.
13037         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
13038         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
13039         Use shallow_copy_rtx and PUT_MODE to change the mode of
13040         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
13041         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
13042         on SHmedia using GENERAL_REGs.
13043         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
13044         bltu_media_i): Fix reversion of conditions.
13045         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
13046         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
13047         * config/sh/sh.c (output_far_jump): Save r13 in macl.
13048         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
13049         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
13050         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
13051         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
13052         (GCC_nested_trampoline): Likewise.
13053         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
13054         * config/sh/sh.c (gen_datalabel_ref): Define.
13055         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
13056         (INITIALIZE_TRAMPOLINE): Likewise.
13057         (TRAMPOLINE_ADJUST_ADDRESS): Define.
13058         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
13059         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
13060         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
13061         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
13062         (ic_invalidate): Adjust for SH5.
13063         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
13064         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
13065         _nested_trampoline.
13066         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
13067         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
13068         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
13069         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
13070         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
13071         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
13072         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
13073         * config/sh/sh.c (target_reg_operand): Match only target-branch
13074         registers and pseudos that aren't virtual registers.
13075         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
13076         Copy operands that don't match target_reg_operand to pseudos.
13077         (call_media, call_value_media, sibcall_media): Use
13078         target_reg_operand instead of target_operand.
13079         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
13080         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
13081         * config/sh/sh.c (target_reg_operand): Match hardware registers
13082         other than branch-target registers.
13083         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
13084         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
13085         (fpscr_values) [SH5 == 32]: Define.
13086         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
13087         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
13088         Handle function addresses coming in SUBREGs.
13089         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
13090         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
13091         shcompact_return_trampoline): Use datalabel where appropriate.
13092         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
13093         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
13094         general-purpose register to copy one branch-target register to
13095         another.
13096         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
13097         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
13098         SYMBOL_REFs with VOIDmode.
13099         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
13100         bltu_media_i): New insns.
13101         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
13102         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
13103         (INIT_CUMULATIVE_ARGS): Likewise.
13104         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
13105         * machmode.def (V16SFmode): New mode.
13106         * c-common.c (type_for_mode): Support V2SF and V16SF.
13107         * tree.c (build_common_tree_nodes_2): Likewise.
13108         * tree.h (tree_index): Likewise.
13109         * calls.c (emit_call_1): Take args_so_far.  Adjust all
13110         callers.  Introduce CALL_POPS_ARGS.
13111         * tm.texi (CALL_POPS_ARGS): Document.
13112         * config/sh/crt1.asm: Implement in SHmedia mode.
13113         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
13114         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
13115         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
13116         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
13117         Implement divsi and udivsi in SHmedia mode.  Introduce
13118         SHcompact trampolines.
13119         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
13120         only in SHmedia64.
13121         (regno_reg_class): Rewrite.
13122         (fp_reg_names): Remove.
13123         (sh_register_names, sh_additional_register_names): New.
13124         (print_operand): Added `u'.  Support SUBREGs in addresses.
13125         Add parentheses around shifted CONSTs.
13126         (output_file_start): Output .mode and .abi directives.
13127         (shiftcosts, addsubcosts, multcosts): Adjust.
13128         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
13129         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
13130         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
13131         bytes, not registers.  Take into account the need for the
13132         SHcompact incoming args trampoline.  Adjust all callers.
13133         (sh_expand_prologue): Take stack_regs into account.  Call
13134         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
13135         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
13136         stack aligned as per SH5 ABI.
13137         (sh_builtin_saveregs): Support SH5 ABI.
13138         (sh_build_va_list, sh_va_start): Likewise.
13139         (initial_elimination_offset): Take alignment into account.
13140         Compute location of PR according to the SH5 stack frame.
13141         (arith_reg_operand): Reject branch-target registers.
13142         (shmedia_6bit_operand): New.
13143         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
13144         (target_reg_operand): Match DImode only.  Accept SUBREGs.
13145         (target_operand): New.
13146         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
13147         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
13148         SIBCALL_REGS for SHmedia.
13149         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
13150         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
13151         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
13152         (TARGET_SWITCHES): New SH5 flags.
13153         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
13154         VALID_REGISTER_P to disable unsupported registers.
13155         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
13156         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
13157         (FUNCTION_ARG_PADDING): Define.
13158         (FASTEST_ALIGNMENT): Adjust.
13159         (SH_REGISTER_NAMES_INITIALIZER): New.
13160         (sh_register_names): Declare.
13161         (DEBUG_REGISTER_NAMES): Define.
13162         (REGISTER_NAMES): Define based on sh_register_names.
13163         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
13164         (sh_additional_register_names): Declare.
13165         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
13166         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
13167         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
13168         (REGISTER_NATURAL_MODE): Define.
13169         (FIRST_PSEUDO_REGISTER): Adjust.
13170         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
13171         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
13172         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
13173         (VECTOR_MODE_SUPPORTED_P): Define.
13174         (REG_CLASS_CONTENTS): Adjust.
13175         (SMALL_REGISTER_CLASSES): Adjust.
13176         (REG_ALLOC_ORDER): Adjust.
13177         (INDEX_REG_CLASS): Adjust.
13178         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
13179         (CONST_OK_FOR_LETTER_P): Adjust.
13180         (PREFERRED_RELOAD_CLASS): Adjust.
13181         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
13182         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
13183         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
13184         (FIRST_FP_PARM_REG): Adjust.
13185         (CALL_POPS_ARGS): Define.
13186         (FUNCTION_ARG_REGNO_P): Adjust.
13187         (struct sh_args): New fields.
13188         (GET_SH_ARG_CLASS): Adjust.
13189         (INIT_CUMULATIVE_ARGS): Adjust.
13190         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
13191         (FUNCTION_ARG_ADVANCE): Adjust.
13192         (FUNCTION_ARG): Adjust.
13193         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
13194         (FUNCTION_ARG_CALLEE_COPIES): Define.
13195         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
13196         (STRICT_ARGUMENT_NAMING): Define.
13197         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
13198         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
13199         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
13200         (SETUP_INCOMING_VARARGS): Adjust.
13201         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
13202         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
13203         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
13204         (SUBREG_OK_FOR_INDEX_P): Adjust.
13205         (EXTRA_CONSTRAINT_S): Update.
13206         (EXTRA_CONSTRAINT_T): New.
13207         (EXTRA_CONSTRAINT): Adjust.
13208         (GO_IF_LEGITIMATE_INDEX): Adjust.
13209         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
13210         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
13211         (MOVE_MAX): Adjust.
13212         (MAX_MOVE_MAX): Define.
13213         (Pmode): Adjust.
13214         (CONST_COSTS): Adjust.
13215         (REGISTER_MOVE_COST): Adjust.
13216         (BRANCH_COST): Adjust.
13217         (TEXT_SECTION_ASM_OP): Adjust.
13218         (DBX_REGISTER_NUMBER): Adjust.
13219         (ASM_OUTPUT_DOUBLE_INT): New.
13220         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
13221         (PREDICATE_CODES): Adjust.
13222         (PROMOTE_MODE): Adjust.
13223         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
13224         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
13225         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
13226         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
13227         (DR0_REG, DR2_REG, DR4_REG): Renumber.
13228         (TR0_REG, TR1_REG, TR2_REG): New.
13229         (XD0_REG): Renumber.
13230         (UNSPEC_COMPACT_ARGS): New.
13231         (type): Added pt and ptabs.
13232         (length): Default to 4 on SHmedia.  Default pt length to 12
13233         and     20 on SHmedia32 and SHmedia64, respectively.
13234         (pt): New function unit.
13235         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
13236         Add whitespace between operands of SHmedia instructions.
13237         (movdicc): Fix.
13238         (adddi3_media, addsi3_media): Adjust constraints.
13239         (subsi3) [SHmedia]: Force operand 1 into a register.
13240         (udivsi3_i1_media, udivsi3_i4_media): New.
13241         (udivsi3): Support SHmedia.
13242         (divsi3_i1_media, divsi3_i4_media): New.
13243         (divsi3): Support SHmedia.
13244         (anddi3, iordi3, xordi3): Adjust constraints.
13245         (zero_extendhidi2, zero_extendqidi2): New.
13246         (extendsidi2, extendhidi2, extendqidi2): New.
13247         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
13248         (pop_e, pop_fpul, pop_4): Likewise.
13249         (movsi_media): Support FP and BT registers.
13250         (movsi_media_nofpu): New.  Adjust splits to DImode.
13251         (lduw, ldub): Renamed to zero_extend* above.
13252         (movqi_media): Fix typo.
13253         (movdi_media): Support FP and BT registers.
13254         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
13255         (movdi_const_32bit): New.
13256         (shori_media): Require immediate operand.  Use `u' for output.
13257         (movdf_media, movsf_media): Simplified.
13258         (movdf_media_nofpu, movsf_media_nofpu): New.
13259         (movdf, movsf): Adjust
13260         (movv2sf, movv2sf, movv16sf): New.
13261         (beq_media, beq_media_i): Adjust constraints.  Don't use
13262         scratch BT register.
13263         (bne_media, bne_media_i): Likewise.
13264         (bgt_media, bgt_media_i): Likewise.
13265         (bge_media, bge_media_i): Likewise.
13266         (bgtu_media, bgtu_media_i): Likewise.
13267         (bgeu_media, bgeu_media_i): Likewise.
13268         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
13269         bunordered): Emit jump insn.  Force operands to registers when
13270         needed.
13271         (jump_media, jump): Simplify.
13272         (call_compact, call_compact_rettramp): New.
13273         (call_value_compact, call_value_compact_rettramp): New.
13274         (call_media, call_value_media): Simplify.
13275         (sibcall_compact, sibcall_media): New.
13276         (call, call_value): Adjust for SHmedia and SHcompact.
13277         (sibcall, sibcall_value, untyped_call): Likewise.
13278         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
13279         (indirect_jump): Adjust for SHmedia.
13280         (casesi_jump_media): New.
13281         (nop): Re-enable for SHmedia.
13282         (call_site): Restrict to SH1.
13283         (casesi): Adjust for SHmedia.
13284         (casesi_shift_media, casesi_load_media): New.
13285         (return): Explicitly use PR register.  Call return trampoline
13286         on SHcompact.
13287         (return_i): Explicitly use PR register.
13288         (shcompact_return_tramp, shcompact_return_tramp_i): New.
13289         (return_media): Adjust.
13290         (shcompact_incoming_args): New.
13291         (epilogue): Adjust.
13292         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
13293         (movstrsi): Disable on SH5.
13294         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
13295         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
13296         (subsf3, subsf3_media): Likewise.
13297         (mulsf3, mulsf3_media, mac_media): Likewise.
13298         (divsf3, divsf3_media): Likewise.
13299         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
13300         (floatsisf2, fux_truncsfsi2): Likewise.
13301         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
13302         constraints.
13303         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
13304         (cmpunsf_media, cmpsf): Likewise.
13305         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
13306         (abssf2, abssf2_media): Likewise.
13307         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
13308         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
13309         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
13310         (floatsidf2, fix_truncdfsi2): Likewise.
13311         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
13312         constraints.
13313         (cmpeqdf_media, cmpgtdf_media): Likewise.
13314         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
13315         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
13316         (absdf2, absdf2_media): Likewise.
13317         (extendsfdf2, extendsfdf2_media): Likewise.
13318         (truncsfdf2, truncsfdf2_media): Likewise.
13319         * config/sh/sh64.h: New file.
13320         * config/sh/t-sh64: New file.
13321         * config/sh/shmedia.h: New file.
13322         * config/sh/ushmedia.h: New file.
13323         * config/sh/sshmedia.h: New file.
13324         * configure.in: Added sh64-*-elf.
13325         * configure: Rebuilt.
13326         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
13327         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
13328         (reg_class_from_letter): Use `b' for TARGET_REGS.
13329         (print_operand): Support `%M', `%m', `AND' and
13330         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
13331         (andcosts): Adjust for SHmedia.
13332         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
13333         Likewise.
13334         (target_reg_operand): New function.
13335         * config/sh/sh-protos.h (target_reg_operand): Declare.
13336         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
13337         FP registers on SH5.
13338         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
13339         on SH4.
13340         (TARGET_REGISTER_P): New macro.
13341         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
13342         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
13343         (EXTRA_CONSTRAINT_S): New macro.
13344         (EXTRA_CONSTRAINT): Adjust.
13345         (FLOAT_TYPE_SIZE): Define to 32.
13346         (Pmode): DImode on SHmedia.
13347         (CONST_COSTS): Adjust for SHmedia literals.
13348         (PREDICATE_CODES): Added target_reg_operand.
13349         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
13350         * config/sh/sh.md: Remove all attrs from SHmedia insns.
13351         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
13352         (cmpdi): Accept SHmedia.
13353         (movdicc_false, movdicc_true): New insns.
13354         (movdicc): New expand.
13355         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
13356         no_new_pseudos.
13357         (addsi3_media): Match `S' constraint.
13358         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
13359         (negdi2): Expand for SHmedia.
13360         (one_cmpldi2): New expand.
13361         (zero_extendsidi2): Change from expand to insn.
13362         (extendsidi2): Add constraints.
13363         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
13364         LD/ST address.  Fix SI immediate loading split.
13365         (movhi_media, movqi_media, lduw, ldub): New insns.
13366         (movhi, movqi): Accept SHmedia.
13367         (shori_media, movdi_media): Relax input constraints.  Split
13368         symbolic constants.
13369         (movdf_media, movsf_media): New insn.  New split to movdi.
13370         (movdf, movsf): Match on SHmedia.
13371         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
13372         bgeu_media): New insns and splits.  New insns with `_i' suffix.
13373         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
13374         (bunordered): New expand.
13375         (jump_compact): Renamed from `jump'.
13376         (jump_media): New insn.
13377         (jump): New expand.
13378         (call_media, call_value_media): New insns.
13379         (call, call_value): Adjust.
13380         (indirect_jump_compact): Renamed from `indirect_jump'.
13381         (indirect_jump_media): New insn.
13382         (indirect_jump): New expand.
13383         (untyped_call, return): Accept SHmedia.
13384         (return_media): New insn.
13385         (prologue, epilogue, blockage): Accept SHmedia.
13386         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
13387         (sunordered): New expand.
13388         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
13389         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
13390         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
13391         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
13392         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
13393         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
13394         abssf2_media): New insns.
13395         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
13396         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
13397         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
13398         floatdidf2, floatsidf2_media, fix_truncdfdi2,
13399         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
13400         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
13401         absdf2_media): New insns.
13402         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
13403         (extendsfdf2_media, truncdfsf2_media): New insns.
13404         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
13405         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
13406         * config/sh/sh.h (CONST_OK_FOR_J): Document.
13407         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
13408         * config/sh/sh.md (adddi3): New expand.
13409         (adddi3_media, adddi3z_media): New insns.
13410         (adddi3_compact): Renamed from adddi3.
13411         (addsi3_media): Use add.l r63 to add constant zero.
13412         (subdi3): New expand.
13413         (subdi3_media): New insn.
13414         (subdi3_compact): Renamed from subdi3.
13415         (mulsidi3): New expand.
13416         (mulsidi3_media): New insn.
13417         (mulsidi3_compact): Renamed from mulsidi3.
13418         (umulsidi3): New expand.
13419         (umulsidi3_media): New insn.
13420         (umulsidi3_compact): Renamed from umulsidi3.
13421         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
13422         (ashlsi3, ashrsi3, lshrsi3): Use them.
13423         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
13424         (ashldi3, ashrdi3, lshrdi3): Use them.
13425         (zero_extendsidi2): New expand.
13426         (extendsidi2): New insn.
13427         (movsi_media): New insn.  Split to movdi to load constants.
13428         (movsi): Enable for shmedia.
13429         (movdi_media): New insn.  Use shori_media to load wide constants.
13430         (short_media): New insn.
13431         (movdi): Enable for shmedia.
13432         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
13433         * config/sh/sh.h (CPP_SPEC): Added `m5'.
13434         (SUBTARGET_CPP_SPEC): Added `!m5'.
13435         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
13436         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
13437         to all other SH variants.
13438         (TARGET_DEFAULT): Set to SH1_BIT.
13439         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
13440         (BITS_PER_WORD): Raise to 64 on shmedia.
13441         (MAX_BITS_PER_WORD): Change to 64.
13442         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
13443         (INT_TYPE_SIZE): Keep as 32.
13444         (UNITS_PER_WORD): Raise to 8 on shmedia.
13445         (MIN_UNITS_PER_WORD): Keep as 4.
13446         (POINTER_SIZE): Raise to 64 on shmedia.
13447         (CONST_OK_FOR_J): New macro.
13448         (CONST_OK_FOR_LETTER_P): Use it.
13449         (processor_type): Add PROCESSOR_SH5.
13450         * config/sh/sh.md: Conditionalize all expands, insns and
13451         splits to TARGET_SH1.
13452         (cpu): Added sh5.
13453         (addsi3_compact): Renamed from...
13454         (addsi3): Now an expand.
13455         (addsi3_media, subsi3_media): New insns.
13456         (subsi3): Don't negate constants with SHmedia.
13457
13458         * hooks.c: New file.
13459         * hooks.h: New file.
13460         * Makefile.in (HOOKS_H): New.
13461         (TARGET_DEF_H): Added $(HOOKS_H).
13462         (OBJS): Added hooks.o.
13463         (cfgcleanup.o, bb-reorder.o): Added target.h.
13464         (hooks.o): Added dependencies.
13465         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
13466         (TARGET_INITIALIZER): this.
13467         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
13468         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
13469         * bb-reorder.c: Include target.h.
13470         (reorder_basic_blocks): Skip if cannot modify jumps.
13471         * cfgcleanup.c: Include target.h.
13472         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
13473
13474 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
13475
13476         * config/mips/mips.md (casesi_internal, casesi_internal_di):
13477         Protect jump delay slot instructions with .set noreorder and
13478         .set nomacro.
13479
13480 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
13481
13482         * config/mips/mips.md (casesi_internal_di): Calculate
13483         the index into the target offset table correctly.
13484
13485 2002-02-08  Richard Henderson  <rth@redhat.com>
13486
13487         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
13488         * final.c (output_addr_const): Accept and discard SUBREG.
13489         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
13490         mark them unknown instead.
13491         (simplify_subtraction): Handle RTX_UNKNOWN.
13492         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
13493
13494 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
13495
13496         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
13497
13498 2002-02-08  Richard Henderson  <rth@redhat.com>
13499
13500         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
13501
13502 2002-02-08  Andreas Jaeger  <aj@suse.de>
13503
13504         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
13505         * config/i386/t-linux64: New file.
13506
13507 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
13508
13509         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
13510         * c-parse.in (compstmt): Clear last_expr_type.
13511
13512 2002-02-07  Richard Henderson  <rth@redhat.com>
13513
13514         * loop.c (strength_reduce): Sink final_value when not
13515         eliminating a biv.
13516
13517 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
13518
13519         * config/sparc/freebsd.h: Fix mismatched spec {.
13520
13521 2002-02-07  Richard Henderson  <rth@redhat.com>
13522
13523         * cfgrtl.c: Include recog.h and insn-config.h.
13524         (keep_with_call_p): Fix general_operand invocation.
13525         * Makefile.in (cfgrtl.o): Update dependencies.
13526
13527 2002-02-07  Kazu Hirata  <kazu@hxi.com>
13528
13529         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
13530         comment.  Accept HImode only if TARGET_H8300.
13531
13532 2002-02-07  Eric Christopher  <echristo@redhat.com>
13533
13534         * config/mips/crtn.asm: Cleanup #ifdefs.
13535
13536 2002-02-07  Eric Christopher  <echristo@redhat.com>
13537
13538         * config/mips/crti.asm: Add changes for mips16. mips16 uses
13539         register 7 as RA instead of $31.
13540         * config/mips/crtn.asm: Ditto.
13541         * config/mips/mips.c (mips_move_2words): Add case for
13542         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
13543         (compute_frame_size): Fix typo.
13544         (save_restore_insns): Ditto.  Make documentation about using
13545         register $7 as return register more precise.
13546         (mips_expand_epilogue): Fix comment. Add code to work around not
13547         being able to add to the stack pointer directly.
13548         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
13549         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
13550         epilogue.
13551
13552 2002-02-07  Tom Rix  <trix@redhat.com>
13553
13554         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
13555         immediates in ldu and stdu DS opcode field.
13556         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
13557         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
13558         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
13559
13560 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
13561
13562         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
13563         offset for stack bias.
13564
13565 2002-02-07  H.J. Lu <hjl@gnu.org>
13566
13567         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
13568
13569 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
13570
13571         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
13572
13573 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
13574
13575         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
13576         * i386.c (x86_order_regs_for_local_alloc): New global function.
13577         * i386.h (REG_ALLOC_ORDER): CLeanup.
13578         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
13579
13580 2002-02-07  Richard Henderson  <rth@redhat.com>
13581
13582         PR optimization/2463
13583         * alias.c (find_base_value): Recall base values for fixed hard regs.
13584         * loop.c (loop_regs_update): Don't use single_set on non-insns.
13585
13586 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
13587
13588         * config/mips/mips.md (define_delay) [mips16]: Adjust required
13589         length.
13590
13591 2002-02-06  Richard Henderson  <rth@redhat.com>
13592
13593         PR c/5609
13594         * stmt.c (resolve_operand_name_1): Take more care with mixed
13595         named and unnamed operands.
13596
13597 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
13598             Jan Hubicka  <jh@suse.cz>
13599
13600         * loop.c (remove_constant_addition): Avoid clobbering a shared
13601         CONST expression.
13602
13603 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
13604
13605         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
13606         * config/s390/t-linux64: New file.
13607         * config/s390/libgcc-glibc.ver: New file.
13608
13609 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
13610
13611         * config/s390/linux64.h: Delete file.
13612         * config/s390/s390x.h: New file.
13613         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
13614         as target header file.
13615         * config/s390/linux.h (TARGET_VERSION): Define depending on
13616         DEFAULT_TARGET_64BIT.
13617         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
13618         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
13619         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
13620         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
13621         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
13622         (EXTRA_SPEC): New define.
13623         * config/s390/s390.h (TARGET_VERSION): Define depending on
13624         DEFAULT_TARGET_64BIT.
13625         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
13626
13627 2002-02-06  Jason Merrill  <jason@redhat.com>
13628
13629         * c-decl.c (finish_function): Warn about a non-void function with
13630         no return statement and no abnormal exit.
13631         (current_function_returns_abnormally): New variable.
13632         (start_function): Clear it.
13633         (struct c_language_function): Add returns_abnormally.
13634         (push_c_function_context): Save it.
13635         (pop_c_function_context): Restore it.
13636         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
13637         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
13638         an explicit return type.
13639         * c-tree.h: Declare current_function_returns_abnormally.
13640         (C_FUNCTION_IMPLICIT_INT): New macro.
13641         * c-typeck.c (build_function_call): Set it.
13642         (c_expand_return): Set current_function_returns_value even if the
13643         value is erroneous.
13644
13645 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
13646
13647         PR c/5420:
13648         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
13649         unsafe for reevaluation.
13650
13651 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
13652
13653         PR c/5482:
13654         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
13655         EXPR_STMT, but COMPOUND_STMT, recurse into it.
13656
13657 2002-02-06  Richard Henderson  <rth@redhat.com>
13658
13659         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
13660         be a general_operand.  Dest for function value must be a pseudo.
13661
13662 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
13663
13664         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
13665         as SYMBOL_REFs from the constant pool.
13666
13667 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
13668
13669         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
13670         passed by invisible reference.
13671
13672 2002-02-05  Richard Henderson  <rth@redhat.com>
13673
13674         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
13675
13676 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
13677
13678         Implement using "base addresses" in insn operands as default.
13679         * config/mmix/mmix.c (mmix_conditional_register_usage): if
13680         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
13681         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
13682         used to read the rtx value.
13683         (mmix_target_asm_function_epilogue): Fix spacing.
13684         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
13685         (mmix_legitimate_address): Ditto.
13686         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
13687         should be loaded with a GETA insn.  Don't allocate needless extra
13688         char for nul termination and fix misleading comment.
13689         (mmix_print_operand_address): Handle constants if
13690         TARGET_BASE_ADDRESSES.
13691         (mmix_output_register_setting): Use base addressing if
13692         TARGET_BASE_ADDRESSES and the number of insns is 3.
13693         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
13694         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
13695         to use R as constraint, add LDA to match s.
13696         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
13697         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
13698         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
13699         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
13700         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
13701         order with other fixed registers.
13702         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
13703         other parameter/call-clobbered registers.
13704         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
13705         -mbase-addresses, -mno-base-addresses.
13706         (MMIX Options): Ditto.
13707
13708 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13709
13710         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
13711
13712 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
13713
13714         * config/rs6000/altivec.h: Change elem to _S_elem.
13715
13716 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
13717
13718         * config/netbsd.h (WCHAR_TYPE): Define.
13719         (WCHAR_TYPE_SIZE): Ditto.
13720         (WINT_TYPE): Ditto.
13721         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
13722         (WCHAR_UNSIGNED): Ditto.
13723         (WCHAR_TYPE_SIZE): Ditto.
13724         (WINT_TYPE): Ditto.
13725         * config/arm/netbsd.h: Likewise.
13726         * config/i386/netbsd-elf.h: Likewise.
13727         * config/i386/netbsd.h: Likewise.
13728         * config/m68k/netbsd-elf.h: Likewise.
13729         * config/m68k/netbsd.h: Likewise.
13730         * config/ns32k/netbsd.h: Likewise.
13731         * config/sparc/netbsd.h: Likewise.
13732         * config/vax/netbsd.: Likewise.
13733
13734 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
13735
13736         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
13737         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
13738         (TARGET_INITIALIZER): this.
13739         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
13740         (BITFIELD_NBYTES_LIMITED): Markup fix.
13741         * tree.h (default_ms_bitfield_layout_p): Declare.
13742         (record_layout_info): Added prev_field.
13743         * tree.c (default_ms_bitfield_layout_p): New fn.
13744         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
13745         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
13746         * stor-layout.c: Include target.h.
13747         (start_record_layout): Initialize prev_field.
13748         (place_field): Handle MS bit-field layout, and disregard
13749         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
13750         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
13751         * Makefile.in (stor-layout.o): Adjust dependencies.
13752
13753 2002-02-05  Jason Merrill  <jason@redhat.com>
13754
13755         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
13756
13757 2002-02-05  Andreas Jaeger  <aj@suse.de>
13758
13759         * crtstuff.c: Fix comments.
13760
13761 2002-02-05  Richard Henderson  <rth@redhat.com>
13762
13763         PR fortran/3393
13764         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
13765         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
13766
13767         PR fortran/3392
13768         * config/mips/mips.c (function_arg): Handle TImode.
13769         (function_arg_advance): Likewise.
13770
13771 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
13772
13773         * config/rs6000/altivec.h (vec_step_help): Rename to
13774         __vec_step_help.
13775
13776 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
13777
13778         * config/rs6000/altivec.h: Fix typos.
13779
13780 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
13781
13782         * config/arm/netbsd.h: Correct a comment.
13783
13784 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
13785
13786         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
13787         building void typed builtins.
13788
13789         * config/rs6000/altivec.h (vec_ld*): Fix typos.
13790         (vec_step): Implement for C++.
13791
13792 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13793
13794         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
13795
13796 2002-02-04  Richard Henderson  <rth@redhat.com>
13797
13798         * combine.c (nonzero_bits): Re-introduce special case for
13799         sp/fp/ap wrt REGNO_POINTER_ALIGN.
13800
13801 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
13802
13803         * doc/extend.texi: Warn about unsupported usage of altivec
13804         builtins.
13805
13806         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
13807         (altivec_predicate_*): New.
13808
13809         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
13810         Add C++ version of vec_*() functions.
13811
13812         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
13813         (bdesc_2arg): Remove altivec predicates.
13814         (altivec_expand_builtin): Handle predicates.
13815         (altivec_init_builtins): Handle predicates.
13816         (altivec_expand_predicate_builtin): New.
13817
13818 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13819
13820         * pa.c (DO_FRAME_NOTES): Move forward.
13821         (store_reg): Revise handling of frame notes.
13822         (load_reg): Likewise.
13823         (set_reg_plus_d): Likewise.
13824         (hppa_expand_prologue): Likewise.
13825         (hppa_expand_epilogue): Likewise.
13826
13827 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13828
13829         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
13830
13831 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
13832
13833         PR c/4475, c++/3780:
13834         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
13835         * c-common.h (SWITCH_TYPE): Define.
13836         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
13837         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
13838         Rename spareness variable to sparseness.
13839         (expand_end_case_type): Renamed from expand_end_case, use orig_type
13840         if non-NULL instead of TREE_TYPE (orig_index).
13841         * tree.h (expand_end_case_type): Renamed from expand_end_case.
13842         (expand_end_case): Define using expand_end_case_type.
13843         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
13844         to expand_end_case_type.
13845         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
13846
13847 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13848
13849         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
13850         (BIGGEST_ALIGNMENT): Change to 128.
13851
13852 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13853
13854         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
13855
13856 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13857
13858         * pa.md (call_internal_reg_64bit): Remove unused variable.
13859
13860 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
13861
13862         * config/arm/arm.h (machine_function): Add uses_anonymous_args
13863         field.
13864         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
13865         * config/arm/arm.c (current_function_anonymous_args): Delete,
13866         replace uses with cfun->machine->uses_anonymous_args.
13867         (arm_reorg): Do not reset uses_anonymous_args.
13868
13869         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
13870         any geenral register.
13871
13872 2001-02-04  Bernd Schmidt  <bernds@redhat.com>s
13873
13874         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
13875         the entry block.
13876
13877 2002-02-04  Richard Henderson  <rth@redhat.com>
13878
13879         * combine.c (force_to_mode): Remove STACK_BIAS code.
13880         (nonzero_bits): Likewise.  Replace sp/fp special case with
13881         REGNO_POINTER_ALIGN.
13882
13883         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
13884         (HARD_FRAME_POINTER_REGNUM): New.
13885         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
13886         (FIXED_REGS, CALL_USED_REGS): Update.
13887         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
13888         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
13889         (HARD_REGNO_NREGS): Update for SFP.
13890         (STACK_POINTER_OFFSET): Include bias here ...
13891         (FIRST_PARM_OFFSET): ... not here.
13892         (STACK_BIAS): Remove.
13893         (INIT_EXPANDERS): New.
13894         (STARTING_FRAME_OFFSET): Do not include bias.
13895         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
13896         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
13897         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
13898         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
13899         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
13900         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
13901         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
13902         (MUST_SAVE_REGISTER): Likewise.
13903         (sparc_flat_function_prologue): Likewise.
13904         (sparc_flat_function_epilogue): Likewise.
13905         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
13906         (sparc_init_modes): SFP is GENERAL_REGS.
13907         (sparc_builtin_saveregs): SFP does not have bias applied.
13908
13909 2002-02-04  Richard Henderson  <rth@redhat.com>
13910
13911         * config/alpha/alpha.c (current_function_is_thunk): Don't check
13912         current_function_is_thunk.
13913         (alpha_sa_mask): Distinguish between current_function_is_thunk
13914         called from ASM_OUTPUT_MI_THUNK and not.
13915         (alpha_does_function_need_gp): Thunks always need gp.
13916         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
13917         (alpha_output_mi_thunk_osf): New.
13918         * config/alpha/alpha-protos.h: Update.
13919         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
13920
13921 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
13922
13923         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
13924         function types, not when they're taken away.
13925
13926 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
13927
13928         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
13929         CODE_LABEL and jump table when replacing a table jump with a
13930         simple jump.
13931
13932 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13933
13934         * config/s390/s390-protos.h (legitimize_la_operand,
13935         s390_secondary_input_reload_class, s390_plus_operand,
13936         s390_expand_plus_operand): Add prototypes.
13937
13938         config/s390/s390.c (s390_secondary_input_reload_class,
13939         s390_plus_operand, s390_expand_plus_operand): New functions.
13940
13941         (struct s390_address): New member 'pointer'.
13942         (s390_decompose_address): Compute it.
13943         (legitimate_la_operand_p): Use it.
13944         (legitimize_la_operand): New function.
13945         (movti, movdi, movdf splitters): Call it.
13946
13947         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
13948         (PREDICATE_CODES): Add s390_plus_operand.
13949
13950         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
13951         (la_ccclobber): Allow GENERAL_REGS as output operand.
13952
13953         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
13954         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
13955         (*la_64, *la_31, reload_indi, reload_insi): ... these.
13956
13957 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13958
13959         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
13960         register names for regular asm () construct.
13961
13962 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
13963
13964         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
13965         registers.
13966
13967 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
13968
13969         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
13970         pat for recog.
13971
13972 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
13973
13974         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
13975         constant pool to be identical by string address and index.
13976
13977 2002-02-04  Anthony Green  <green@redhat.com>
13978
13979         * output.h (SECTION_OVERRIDE): Define.
13980         * varasm.c (named_section): Obey SECTION_OVERRIDE.
13981
13982 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
13983
13984         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
13985         by existing arm*-*-netbsd* (a.out) target.
13986         (ns32k-*-netbsdelf*): Likewise.
13987         (sparc-*-netbsdelf*): Likewise.
13988         (vax-*-netbsdelf*): Likewise.
13989
13990 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
13991
13992         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
13993         headers and libobjc headers.
13994
13995 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
13996
13997         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
13998         (_mingw.h): Remove duplicate include.
13999
14000 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
14001
14002         * config.gcc: Set cpu_type to m68k for 68010, as well.
14003         (m68010-*-netbsdelf*): New...
14004         (m68k*-*-netbsdelf*): ...targets.
14005         * config/m68k/netbsd-elf.h: New file.
14006
14007 2002-02-02  Kazu Hirata  <kazu@hxi.com>
14008
14009         * config/h8300/h8300.c (hand_list): Move inside function_arg.
14010
14011 2002-02-02  Kazu Hirata  <kazu@hxi.com>
14012
14013         * config/h8300/h8300.c (h8_push_ops): Move inside
14014         h8300_init_once.
14015         (h8_pop_ops): Likewise.
14016         (h8_move_ops): Likewise.
14017
14018 2002-02-02  Kazu Hirata  <kazu@hxi.com>
14019
14020         * config/h8300/h8300.c (os_task): Make it static.
14021         (monitor): Likewise.
14022         (pragma_saveall): Likewise.
14023
14024 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
14025
14026         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
14027         constant is a valid sign-extension for Pmode.
14028
14029 2002-02-02  Kazu Hirata  <kazu@hxi.com>
14030
14031         * config/h8300/h8300.c: Fix formatting.
14032
14033 2002-02-02  Kazu Hirata  <kazu@hxi.com>
14034
14035         * config/h8300/h8300.md: Fix formatting.
14036
14037 2002-02-02  Kazu Hirata  <kazu@hxi.com>
14038
14039         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
14040         predicates of operands[1].  Split the patterns for each
14041         processor variant.
14042
14043 2002-02-02  Kazu Hirata  <kazu@hxi.com>
14044
14045         * config/h8300/h8300.md (xor patterns): Tighten the predicates
14046         of operands[1] to register_operand.
14047
14048 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
14049
14050         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
14051         * cpphash.c (_cpp_init_hashtable): Similarly.
14052         * cppinit.c (cpp_create_reader): Default the signed_char flag.
14053         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
14054         (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
14055         (cpp_handle_option): Handle the new options.
14056         * cpplex.c (cpp_interpret_charconst): Use new flag.
14057         * cpplib.h (struct cpp_options): New member signed_char.
14058         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
14059         (cpp_options): Handle -fsigned-char and -funsigned-char.
14060         (static_specs): Remove signed_char_spec.
14061         (do_spec1): Don't handle %c.
14062         * system.h: Poison SIGNED_CHAR_SPEC.
14063         * tradcif.y (yylex): Use flag_signed_char.
14064         * tradcpp.h (flag_signed_char): New.
14065         * tradcpp.c (flag_signed_char): New.
14066         (main): Handle new command-line options.
14067         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
14068 config:
14069         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
14070         * avr/avr.h: Remove old comments.
14071         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
14072         (CC1_SPEC): Pass -fsigned-char if -mic*.
14073         (SIGNED_CHAR_SPEC): Remove.
14074 doc:
14075         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
14076
14077 2002-02-01  Eric Christopher  <echristo@redhat.com>
14078
14079         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
14080         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
14081         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
14082         (ASM_OUTPUT_REG_POP): Ditto.
14083
14084 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
14085
14086         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
14087         patch.
14088
14089 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
14090
14091         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
14092
14093 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
14094
14095         PR c/5304:
14096         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
14097         unconditionally.
14098
14099 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
14100
14101         * cfganal.c: Include tm_p.h.
14102         (keep_with_call_p): Fix the test that determines if a register holds
14103         the return value of a call.
14104
14105 2002-02-01  DJ Delorie  <dj@redhat.com>
14106
14107         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
14108         we are given conflicting registers, switch to the other one we
14109         had allocated for us.
14110         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
14111         as TImode so we know when the "other" register is available.
14112
14113 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
14114
14115         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
14116         sparc/sparc_bi.h.
14117
14118 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
14119
14120         * cfganal.c (keep_with_call_p): New function.
14121         (flow_call_edges_add): Prevent splitting a block between a call and
14122         a single-set instruction that should be kept in the same block.
14123
14124 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14125
14126         * doc/install.texi (avr): Update outdated URL.
14127
14128 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
14129
14130         * config/stormy16/stormy16.md (pushqi): New.
14131         (popqi): New.
14132         (pushhi): New.
14133         (pophi): New.
14134         (movhi): Remove stack operands.
14135         (movqi): Likewise.
14136         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
14137         nonimmediate_nonstack_operand.
14138         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
14139         New.
14140         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
14141         New.
14142
14143 2002-01-31  Jason Merrill  <jason@redhat.com>
14144
14145         * Makefile.in (c-parse.c): Handle .output file.
14146         * objc/Make-lang.in (objc-parse.c): Likewise.
14147
14148 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
14149
14150         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
14151         the -me[lb] option is given.  Don't output the default flag
14152         twice.
14153
14154 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
14155
14156         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
14157         the primary source file; this has not been done yet.
14158         * c-decl.c (c_expand_body): Reset input_filename from
14159         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
14160
14161 2002-01-31  Kazu Hirata  <kazu@hxi.com>
14162
14163         * rtlanal.c (subreg_regno_offset): Do not use
14164         SUBREG_REGNO_OFFSET.
14165         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
14166         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
14167
14168 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
14169
14170         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
14171         version rather than GNATS version in --version output.
14172
14173 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
14174
14175         * ifcvt.c (noce_process_if_block): Make a copy of the destination
14176         when copying back from a temporary.
14177
14178 2002-01-30  Richard Henderson  <rth@redhat.com>
14179
14180         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
14181         and new_dest are the same.
14182
14183 2002-01-30  Richard Henderson  <rth@redhat.com>
14184
14185         PR opt/5076
14186         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
14187         * rtl.c (note_insn_name): Update.
14188         * emit-rtl.c (remove_unnecessary_notes): Kill it.
14189         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
14190         to perform loop rotation.
14191         (expand_exit_loop_top_cond): New.
14192         * tree.h (expand_exit_loop_top_cond): Declare it.
14193         * c-semantics.c (genrtl_while_stmt): Use it.
14194         (genrtl_for_stmt): Likewise.
14195
14196 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
14197
14198         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
14199         arguments to 64-bit boundaries on 64-bit ABIs.
14200
14201 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
14202
14203         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
14204
14205 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
14206
14207         * c-decl.c (grokdeclarator): Handle type being a typedef for an
14208         invalid type.
14209
14210 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
14211
14212         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
14213         * config/sparc/sparc_bi.h: Remove file.
14214         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
14215
14216 2002-01-30  Richard Henderson  <rth@redhat.com>
14217
14218         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
14219
14220 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
14221
14222         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
14223
14224 2002-01-30  Jason Merrill  <jason@redhat.com>
14225
14226         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
14227         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
14228         (reg_save): Use DW_CFA_offset_extended_sf instead.
14229
14230         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
14231
14232 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
14233
14234         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
14235         in cselib_lookup.
14236
14237 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
14238
14239         * rs6000.md ("*call_value_local32"): Remove constraints.
14240         ("*call_value_local64"): Same.
14241         ("*call_value_indirect_nonlocal_aix32"): Same.
14242         ("*call_value_nonlocal_aix32"): Same.
14243         ("*call_value_indirect_nonlocal_aix64"): Same.
14244         ("*call_value_nonlocal_aix64"): Same.
14245         ("*call_value_nonlocal_sysv"): Same.
14246
14247 2002-01-29  Richard Henderson  <rth@redhat.com>
14248
14249         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
14250
14251 2002-01-29  Richard Henderson  <rth@redhat.com>
14252
14253         * expr.c (force_operand): Ignore flag_pic for detecting pic
14254         address loads.
14255         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
14256         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
14257         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
14258         instead of open-coded loop.
14259         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
14260         be fixed when in use.
14261
14262 2002-01-29  Richard Henderson  <rth@redhat.com>
14263
14264         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
14265         * sched-rgn.c (propagate_deps): Update them.
14266         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
14267         clobbers list when either gets too long.
14268
14269 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
14270
14271         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
14272         and INDEX_REGS the same as GENERAL_REGS.
14273         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
14274
14275 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
14276
14277         * tree.c (build_nonstandard_integer_type): Correct prototype.
14278
14279 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
14280
14281         * config/s390/s390.md (movstrsico, movstrdix_64,
14282         movstrsix_31): Remove, replace by ...
14283         (movstrdi_short, movstrsi_short, movstrdi_long,
14284         movstrsi_long): ... these.  New.
14285         (movstrdi, movstrsi): Adapt.
14286
14287         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
14288         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
14289         Remove unnecessary CC clobber.
14290         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
14291         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
14292
14293         (divmoddi4): Don't partially initialize TImode register.
14294
14295 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
14296
14297         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
14298
14299 2002-01-29  Richard Henderson  <rth@redhat.com>
14300
14301         * flow.c (print_rtl_and_abort): Remove.
14302         (print_rtl_and_abort_fcn): Remove.
14303         (verify_local_live_at_start): Use dump_bb instead.
14304         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
14305         (verify_wide_reg_1): Return 2 on mode test failure.
14306
14307 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
14308
14309         PR c/3325, c/3326, c/2511, c/3347
14310         * c-decl.c (enum_decl_context): Remove BITFIELD.
14311         (grokdeclarator): Take bitfield width as an input.
14312         Ensure bitfields are given the correct type.  Perform
14313         bitfield width validation with build_bitfield_integer_type
14314         rather than waiting for finish_struct.
14315         (grok_typename, grok_typename_in_parm_context, start_decl,
14316         push_parmdecl, grokfield, start_function): Update calls to
14317         grokdeclarator.
14318         (build_bitfield_integer_type): New function.
14319         (finish_struct): Move bitfield validation to grokdeclarator
14320         and build_bitfield_integer_type.
14321         * tree.c (build_nonstandard_integer_type): New function.
14322         * tree.h (build_nonstandard_integer_type): New prototype.
14323 objc:
14324         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
14325
14326 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
14327
14328         PR other/1502:
14329         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
14330         don't ignore unrecognized -W* options.
14331         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
14332         * cpplib.h (cpp_handle_option): Adjust prototype.
14333         * c-decl.c (c_decode_options): Pass 0 as last argument to
14334         cpp_handle_option.
14335
14336         PR c/2896:
14337         * gcc.c (cpp_unique_options): Split from cpp_options.
14338         (cpp_options): Source cpp_unique_options.
14339         (default_compilers): Use cpp_unique_options instead of cpp_options
14340         when used together with cc1_options.
14341         (static_specs): Add cpp_unique_options.
14342         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
14343         when used together with cc1_options.
14344
14345 2002-01-29  Kazu Hirata  <kazu@hxi.com>
14346
14347         * config/h8300/h8300-protos.h: Update the prototype of
14348         output_a_shift.
14349         * config/h8300/h8300.c (output_a_shift): Remove an unused
14350         argument 'insn'.  Remove redundant code.
14351         * config/h8300/h8300.md: Adust to the new prototype of
14352         output_a_shift.
14353
14354 2002-01-29  Kazu Hirata  <kazu@hxi.com>
14355
14356         * config/h8300/h8300-protos.h: Update the prototypes of
14357         emit_a_rotate and expand_a_rotate.
14358         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
14359         first argument to 'enum rtx_code'.
14360         (expand_a_rotate): Likewise.
14361
14362 2002-01-28  Kazu Hirata  <kazu@hxi.com>
14363
14364         * config/h8300/h8300-protos.h: Update the prototype of
14365         output_simode_bld.
14366         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
14367         'log2'.
14368         * config/h8300/h8300.md: Adjust to the new prototype.
14369
14370 2002-01-28  Kazu Hirata  <kazu@hxi.com>
14371
14372         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
14373         redundant code.
14374
14375 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14376
14377         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
14378         is a fixed register before returning pic_offset_table_rtx.
14379         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
14380         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
14381
14382 2002-01-28  Jason Merrill  <jason@redhat.com>
14383
14384         * dwarf2.h: Sync with src version.
14385
14386 2002-01-28  Paul Koning  <pkoning@equallogic.com>
14387
14388         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
14389         BT_FN_VOID_PTR_VAR.
14390         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
14391         * doc/extend.texi (__builtin_prefetch): Update documentation:
14392         first argument is now const void ptr.
14393
14394 2002-01-28  Kazu Hirata  <kazu@hxi.com>
14395
14396         * config/h8300/h8300-protos.h: Remove an unused prototype.
14397
14398 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
14399
14400         * toplev.c (lang_independent_init): Round up identifier size.
14401
14402 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
14403
14404         * config.gcc: Revert previous change.
14405
14406 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
14407
14408         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
14409
14410 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
14411
14412         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
14413         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
14414         other non-elf netbsd config frags.
14415         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
14416         collect2 will does that.
14417         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
14418         shared-lib frobbing will work.
14419
14420 2002-01-28  Kazu Hirata  <kazu@hxi.com>
14421
14422         * config/h8300/h8300.h: Fix formatting.
14423         * config/h8300/h8300.md: Likewise.
14424
14425 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
14426
14427         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
14428         the old, removed AAA_standards fix.
14429         * fixinc/fixincl.x: Rebuilt.
14430
14431 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
14432
14433         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
14434         atexit call in crtbegin, hooked in after call to frame_dummy;
14435         register EH before registering __fini__start.
14436
14437 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
14438
14439         * config/rs6000/altivec.h: Remove spurious semicolons.
14440
14441 2002-01-27  Kazu Hirata  <kazu@hxi.com>
14442
14443         * config/h8300/h8300.md: Replace dead bit extraction patterns
14444         with ones that work.
14445
14446 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14447
14448         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
14449         if not STRICT_ALIGNMENT.
14450         * rtl.h (MEM_ALIGN): Likewise.
14451
14452 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14453
14454         * doc/invoke.texi (-fdump-translation-unit): Revert this
14455         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14456
14457 2002-01-27  Kazu Hirata  <kazu@hxi.com>
14458
14459         * config/h8300/h8300.md (define_constants): New.
14460         (anonymous patterns) Use defined constants appropriately.
14461
14462 2002-01-27  Kazu Hirata  <kazu@hxi.com>
14463
14464         * config/h8300/h8300.c (function_arg): Remove redundant code.
14465
14466 2002-01-26  Richard Henderson  <rth@redhat.com>
14467
14468         * sched-deps.c (reg_pending_uses_head): New.
14469         (reg_pending_barrier): Rename from reg_pending_sets_all.
14470         (find_insn_list): Don't mark inline.
14471         (find_insn_mem_list): Remove.
14472         (add_dependence_list, add_dependence_list_and_free): New.
14473         (flush_pending_lists): Replace only_write param with separate
14474         for_read and for_write parameters.  Update all callers.  Use
14475         add_dependence_list_and_free.
14476         (sched_analyze_1): Do not add reg dependencies here; just set
14477         the pending bits.  Use add_dependence_list.
14478         (sched_analyze_2): Likewise.
14479         (sched_analyze_insn): Replace schedule_barrier_found with
14480         reg_pending_barrier.  Add all dependencies for pending reg
14481         uses, sets, and clobbers.
14482         (sched_analyze): Don't add reg dependencies for calls, just
14483         set pending bits.  Use regs_invalidated_by_call.  Treat
14484         sched_before_next_call as a normal list, not a fake insn.
14485         (init_deps): No funny init for sched_before_next_call.
14486         (free_deps): Free pending mems lists.  Don't zero reg_last.
14487         (init_deps_global): Init reg_pending_uses.
14488         (finish_deps_global): Free it.
14489         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
14490         (find_insn_mem_list): Remove.
14491         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
14492         (propagate_deps): Use them.  Zero temp mem lists.
14493
14494 2002-01-26  Richard Henderson  <rth@redhat.com>
14495
14496         * Makefile.in (CRTSTUFF_CFLAGS): New.
14497         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
14498         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
14499         crtstuff.c instead of alpha assembly version.
14500         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
14501         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
14502         not FORCE_{INIT,FINI}_SECTION_ALIGN.
14503         (__do_global_dtors_aux): Mark used.
14504         (frame_dummy, __do_global_ctors_aux): Mark used.
14505         (fini_dummy, init_dummy): Remove.
14506
14507         * config/alpha/crtbegin.asm: Remove file.
14508         * config/alpha/crtend.asm: Remove file.
14509         * config/alpha/t-crtbe: Remove file.
14510         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
14511         (LINK_EH_SPEC): New.
14512
14513         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
14514         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
14515         calling constructors.
14516         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
14517
14518         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
14519         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
14520         CRT_END_INIT_DUMMY hack.
14521         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
14522         FORCE_{INIT,FINI}_SECTION_ALIGN.
14523
14524         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
14525         FORCE_{INIT,FINI}_SECTION_ALIGN.
14526
14527         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
14528         invocation sequence.
14529         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
14530
14531         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
14532         (FORCE_CODE_SECTION_ALIGN): New.
14533
14534 2002-01-26  Richard Henderson  <rth@redhat.com>
14535
14536         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
14537
14538 2002-01-26  Richard Henderson  <rth@redhat.com>
14539
14540         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
14541         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
14542
14543 2002-01-26  Kazu Hirata  <kazu@hxi.com>
14544
14545         * config/h8300/h8300.md: Remove bit extraction patterns that
14546         cannot be triggered.
14547         Restrict each bit extraction pattern to a variant on which the
14548         pattern is tested.
14549
14550 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
14551
14552         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
14553
14554 2002-01-26  Kazu Hirata  <kazu@hxi.com>
14555
14556         * config/h8300/h8300.md: Remove bit test patterns that cannot
14557         be triggered.
14558         Restrict each bit test pattern to a variant on which the
14559         pattern is tested.
14560
14561 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14562
14563         * builtins.c (expand_builtin_strncat): Remove redundant check for
14564         INTEGER_CST.
14565
14566 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
14567
14568         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
14569         default setting.
14570         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
14571         existing setting.
14572
14573 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
14574
14575         * dbxout.c (dbxout_init): Use assemble_name rather than just
14576         stripping off the first character.
14577         (dbxout_source_file): Likewise.
14578
14579 2002-01-25  DJ Delorie  <dj@redhat.com>
14580
14581         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
14582         using rtx_equal_p, not by comparing pointers.
14583
14584 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
14585
14586         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
14587         for PIC_OFFSET_TABLE_REGNUM.
14588         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
14589
14590 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
14591
14592         * config.gcc (x86_64-*-freebsd*): New target.
14593         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
14594         value.
14595         (i[34567]86-*-freebsd*): Don't include svr4.h.
14596         * config/i386/freebsd64.h: New file.
14597
14598 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
14599
14600         * config/alpha/x-vms (version): Make static.
14601
14602         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
14603         in previous checkin.
14604
14605         * Makefile.in (install-headers-cp): New target.
14606         * config.gcc (alpha-dec-*vms*): Install headers with
14607         install-headers-cp
14608
14609 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
14610
14611         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
14612         avoid it's copies.
14613
14614 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14615
14616         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
14617         of compare_tree_int.
14618         (expand_builtin_strncat): Likewise.
14619         * c-decl.c (finish_struct): Use tree_low_cst.
14620         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
14621         * tree.c (compare_tree_int): Likewise.
14622
14623 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
14624
14625         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
14626         adjustments even if they are implemented by more than two insns.
14627
14628 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
14629
14630         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
14631         * df.h (struct ref): Kill B.
14632         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
14633
14634         * basic-block.h (PROP_EQUAL_NOTES): New flag.
14635         * flow.c (propagate_one_insn): Use it.
14636         (mark_used_regs): Handle NIL.
14637
14638 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
14639
14640         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
14641         to help folding.
14642
14643 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
14644
14645         * rs6000.md (prefetch): Make address V4SI mode so that the address
14646         is restricted to legitimate form for instruction.
14647
14648 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
14649
14650         * doc/install.texi (xtensa-*-elf): New target.
14651         (xtensa-*-linux*): New target.
14652         * doc/contrib.texi: Add myself.
14653
14654 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
14655
14656         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
14657         purpose register to hold an SImode (or smaller) value.
14658
14659 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
14660
14661         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
14662         registry only.
14663         * crtstuff.c: Likewise.
14664
14665 2002-01-25  Kazu Hirata  <kazu@hxi.com>
14666
14667         * config/h8300/h8300.md (negation patterns): Tighten
14668         predicates to register_operand.
14669
14670 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
14671
14672         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
14673         mode, not Pmode.
14674
14675         * builtins.c (expand_builtin_prefetch): Same.
14676
14677 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
14678
14679         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
14680         modes.
14681
14682 2002-01-24  Kazu Hirata  <kazu@hxi.com>
14683
14684         * config/h8300/h8300.c (print_operand): Remove support for
14685         operand character 'A'.
14686         * config/h8300/h8300.md (three anonymous patterns): Replace
14687         operand character 'A' with either 'T' or 'S'.
14688
14689 2002-01-24  Kazu Hirata  <kazu@hxi.com>
14690
14691         * config/h8300/h8300.c (print_operand): Remove support for
14692         operand character 'U'.
14693
14694 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
14695
14696         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
14697
14698 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
14699
14700         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
14701         values to be assigned to the stack pointer.
14702
14703 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
14704
14705         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
14706         to const_double needs to be done right for big-endian systems.
14707
14708 2002-01-24  Jason Merrill  <jason@redhat.com>
14709
14710         PR c++/2432
14711         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
14712         to can_throw_internal.
14713
14714 2002-01-23  Richard Henderson  <rth@redhat.com>
14715
14716         * fold-const.c (fold): Change UINT_MAX test to check vs precision
14717         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
14718
14719 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
14720
14721         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
14722         (symGOT2reg): Use them, then set as GOT value as unchanging.
14723         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
14724         as a temporary, if possible.
14725         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
14726         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
14727
14728 2002-01-23  Kazu Hirata  <kazu@hxi.com>
14729
14730         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
14731         accept to accept 0x80 as operands[2].
14732
14733 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
14734
14735         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
14736
14737 2002-01-23  Richard Henderson  <rth@redhat.com>
14738
14739         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
14740
14741 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
14742
14743         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
14744         (parmlist_or_identifiers_1): Verify that only a parmlist follows
14745         an attribute.
14746
14747 2002-01-23  Richard Henderson  <rth@redhat.com>
14748
14749         * expr.c (move_by_pieces_1): Extend size before negation.
14750
14751         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
14752         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
14753         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
14754         * config/m68k/t-m68kelf: Likewise.
14755
14756 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
14757
14758         * config/xtensa/elf.h: New file.
14759         * config/xtensa/lib1funcs.asm: New file.
14760         * config/xtensa/lib2funcs.S: New file.
14761         * config/xtensa/linux.h: New file.
14762         * config/xtensa/t-xtensa: New file.
14763         * config/xtensa/xtensa-config.h: New file.
14764         * config/xtensa/xtensa-protos.h: New file.
14765         * config/xtensa/xtensa.c: New file.
14766         * config/xtensa/xtensa.h: New file.
14767         * config/xtensa/xtensa.md: New file.
14768         * config.gcc (xtensa-*-elf*): New target.
14769         (xtensa-*-linux*): New target.
14770         * cse.c (canon_hash): Compare rtx pointers instead of register
14771         numbers.  This is required for the Xtensa port.
14772         * integrate.c (copy_insn_list): Handle case where the static
14773         chain is in memory and the memory address has to be copied to
14774         a register.
14775         * doc/invoke.texi (Option Summary): Add Xtensa options.
14776         (Xtensa Options): New node.
14777         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
14778
14779 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
14780
14781         * diagnostic.c (internal_error): Do ICE suppression only
14782         when ENABLE_CHECKING is not defined.
14783
14784         * c-typeck.c (require_complete_type): Return error_mark_node
14785         if type is error_mark_node.
14786
14787 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
14788
14789         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
14790         -Os and issue a warning.
14791
14792 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
14793
14794         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
14795         current (lack of) need for host configuration by hand.
14796
14797         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
14798         references.  Documentation of some target macros moved from
14799         hostconfig.texi to tm.texi.
14800
14801 2002-01-23  Will Cohen  <wcohen@redhat.com>
14802
14803         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
14804         defined.
14805
14806 2002-01-23  Kazu Hirata  <kazu@hxi.com>
14807
14808         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
14809         operand[3].
14810
14811 2002-01-23  Jason Merrill  <jason@redhat.com>
14812
14813         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
14814
14815         * function.c (assign_parms): Don't put args of inline functions
14816         into registers when not optimizing.
14817
14818 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
14819
14820         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
14821         (prologue_use): New pattern.
14822         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
14823         preference to gen_rtx_USE.
14824         (thumb_expand_prologue): Use gen_prologue_use in preference to
14825         gen_rtx_USE.
14826         (thumb_expand_epilogue): Use gen_prologue_use in preference to
14827         gen_rtx_USE.
14828
14829 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
14830
14831         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
14832
14833 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
14834
14835         PR c/3504
14836         * doc/extend.texi: Correct documentation of __alignof__.
14837
14838 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
14839
14840         * params.h: Rename arguments of DEFPARAM so that it will be
14841         recognized as a translation keyword.
14842
14843 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
14844
14845         * extend.texi: Document altivec functions.
14846         Fix N-bit adjectives in X86 builtin documentation.
14847
14848 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
14849
14850         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
14851         auto_inc_dec values.
14852
14853 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
14854
14855         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
14856         after backslash.
14857         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
14858
14859 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
14860
14861         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
14862
14863 2002-01-22  Richard Henderson  <rth@redhat.com>
14864
14865         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
14866         copy_insn not copy_rtx.
14867
14868 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
14869
14870         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
14871         "nonzero" as that might add "1" bits.  Ensure "constop" is
14872         properly sign extened.
14873         (force_to_mode): Tweak for sign extended constop.
14874
14875 2002-01-22  Richard Henderson  <rth@redhat.com>
14876
14877         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
14878         for_each_rtx instead of assuming we're already looking at the MEM.
14879         (split_small_symbolic_mem_operand): Likewise.
14880         * config/alpha/alpha.h (PREDICATE_CODES): Update.
14881         * config/alpha/alpha.md (small symbolic memory splitters): Update.
14882
14883 2002-01-22  Richard Henderson  <rth@redhat.com>
14884
14885         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
14886         sequence number for the literal.
14887         (divmoddi_internal_er): Likewise.
14888
14889 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14890
14891         PR java/4972
14892         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
14893         in LIBICONV variable.
14894         * configure: Regenerated.
14895
14896 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
14897
14898         * dependence.c (build_def_use): Remove array_idx.
14899
14900         * dwarfout.c (last_filename): Remove.
14901         (output_compile_unit_die): Remove last_filename.
14902
14903 2002-01-22  Roger Sayle  <roger@eyesopen.com>
14904             Richard Henderson  <rth@redhat.com>
14905
14906         PR opt/3640
14907         * fold-const.c (fold): Optimize unsigned comparisons against
14908         UINT_MAX (and similar unsigned constants).
14909
14910 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
14911
14912         * Makefile.in (loop.o): Depend on OPTABS_H.
14913         * loop.c (emit_prefetch_instructions): Check the prefetch operand
14914         against the predicate.
14915
14916         PR target/5379
14917         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
14918         for the address operand.
14919
14920 2002-01-22  Richard Henderson  <rth@redhat.com>
14921
14922         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
14923
14924 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14925
14926         PR other/5450
14927         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
14928         preprocessor flags.
14929
14930 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
14931
14932         * config.gcc (x86_64-*-netbsd*): New target.
14933         * config/i386/netbsd64.h: New file.
14934
14935 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
14936
14937         * regrename.c (kill_value): Fix typo.
14938
14939 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
14940
14941         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
14942
14943         * config/rs6000/rs6000.h: Same.
14944
14945         * function.c (instantiate_virtual_regs): Remove
14946         STARTING_FRAME_PHASE.
14947         (assign_stack_local_1): Same.
14948         Calculate frame phase.
14949
14950 2002-01-22  Nick Clifton  <nickc@redhat.com>
14951
14952         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
14953         variable declaration to outer scope in order to simplify
14954         future extensions.
14955         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
14956         arm_hard_regno_mode_ok.
14957         * config/arm/arm-protos.h: Add a prototype for
14958         arm_hard_regno_mode_ok.
14959         * config/arm/arm.c (soft_df_operand): Remove now redundant
14960         check for DImode values using IP_REGNUM.
14961         (nonimmediate_soft_df_operand): Remove now redundant check for
14962         DImode values using IP_REGNUM.
14963         (arm_hard_regno_mode_ok): New function. New check: make sure
14964         that DImode values are not stored in IP_REGNUM.
14965
14966         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
14967         note with a USE.
14968         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
14969
14970 2002-01-22  Jason Merrill  <jason@redhat.com>
14971
14972         * c-semantics.c (genrtl_compound_stmt): Only check nesting
14973         consistency if this COMPOUND_STMT is scoped.
14974
14975 2002-01-22  Kazu Hirata  <kazu@hxi.com>
14976
14977         * predict.c: Fix formatting.
14978         * print-tree.c: Likewise.
14979         * protoize.c: Likewise.
14980         * real.h: Likewise.
14981         * rtl.h: Likewise.
14982         * sbitmap.h: Likewise.
14983         * scan.c: Likewise.
14984         * sched-deps.c: Likewise.
14985         * sched-vis.c: Likewise.
14986         * sdbout.c: Likewise.
14987         * sibcall.c: Likewise.
14988         * ssa.c: Likewise.
14989         * ssa-ccp.c: Likewise.
14990         * ssa-dce.c: Likewise.
14991         * stmt.c: Likewise.
14992         * stor-layout.c: Likewise.
14993         * system.h: Likewise.
14994
14995 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14996
14997         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
14998         if fits in bounds of base type.
14999
15000         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
15001         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
15002         (add_bound_info, default): If can't find a context, make a
15003         SAVE_EXPR.
15004         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
15005
15006 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
15007
15008         * c-typeck.c (parser_build_binary_op): If result from
15009         build_binary_op is ERROR_MARK just return error_mark_node without
15010         further processing.
15011
15012 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
15013
15014         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
15015         Split a.out-specific bits into...
15016         * config/netbsd-aout.h: ...this.
15017         * config/netbsd-elf.h: New file.
15018         * config/alpha/netbsd-elf.h: Remove.
15019         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
15020         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
15021         (STARTFILE_SPEC): Remove redundant definition.
15022         (ENDFILE_SPEC): Likewise.
15023         (LINK_SPEC): Likewise.
15024         (CPP_SPEC): Likewise.
15025         (ASM_SPEC): Likewise.
15026         (LIB_SPEC): Likewise.
15027         (SWITCH_TAKES_ARG): Likewise.
15028         (TARGET_MEM_FUNCTIONS): Likewise.
15029         (CPP_PREDEFINES): Redefine.
15030         (ASM_FINAL_SPEC): Remove redefinition.
15031         (ASM_COMMENT_START): Redefine.
15032         (FUNCTION_PROFILER): Define.
15033         (TARGET_VERSION): Redefine.
15034         Comment and formatting cleanup.
15035         * config/i386/netbsd.h: Include <netbsd-aout.h>.
15036         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
15037         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
15038         big- or little-endian.
15039         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
15040         * config.gcc (*-*-netbsd*): Add definitions common to all
15041         NetBSD configs.
15042         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
15043         gnu_ld definitions.  Add netbsd-elf.h to and remove
15044         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
15045         tmake_file, and don't lose previous tmake_file contents.
15046         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
15047         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
15048         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
15049         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
15050         (mipsel-*-netbsd*): Rename this to...
15051         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
15052         mips/little.h to tm_file for mips*el-*.
15053         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
15054         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
15055         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
15056
15057 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15058
15059         * pa-protos.h (reg_before_reload_operand): New function prototype.
15060         * pa.c (reg_before_reload_operand): New function implementation.
15061         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
15062         contraints to "*m".
15063
15064 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
15065
15066         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
15067
15068 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15069
15070         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
15071         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
15072         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
15073         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
15074         (ENDFILE_SPEC): Undefine.
15075         (STARTFILE_SPEC): Redefine for PA.
15076
15077 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
15078
15079         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
15080
15081 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
15082
15083         * config.gcc: Add entries to supported PowerPC --with-cpu
15084         types.
15085
15086 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
15087
15088         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
15089         true for 64-bit mode only SSE registers in 32-bit mode.
15090
15091 2002-01-21  Kazu Hirata  <kazu@hxi.com>
15092
15093         * unwind-dw2.c: Fix formatting.
15094         * unwind-dw2-fde.c: Likewise.
15095         * unwind-dw2-fde.h: Likewise.
15096         * unwind-pe.h: Likewise.
15097         * varasm.c: Likewise.
15098         * varray.h: Likewise.
15099
15100 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
15101
15102         Remove workaround for register stack overwrite bug in mmix.
15103         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
15104         support for TARGET_REG_STACK_FILL_BUG.
15105         * config/mmix/mmix.h: Remove member has_call_without_parameters.
15106         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
15107         Delete.
15108         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
15109         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
15110         -mno-reg-stack-fill-bug-workaround.
15111         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
15112         machine member has_call_without_parameters.
15113         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
15114         -mreg-stack-fill-bug-workaround and
15115         -mno-reg-stack-fill-bug-workaround.
15116         (MMIX Options): Ditto.
15117
15118 2002-01-21  Kazu Hirata  <kazu@hxi.com>
15119
15120         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
15121         as appropriate.
15122         Remove redundant code.
15123
15124 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
15125
15126         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
15127         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
15128         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
15129         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
15130         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
15131         out target macro definitions and non-target-specific comments
15132         mostly taken from old versions of the manual.
15133
15134 2002-01-20  Kazu Hirata  <kazu@hxi.com>
15135
15136         * config/h8300/h8300.h: Fix comment formatting.
15137         * config/ia64/aix.h: Likewise.
15138         * config/ia64/ia64-protos.h: Likewise.
15139         * config/ia64/ia64.c: Likewise.
15140         * config/ia64/ia64.h: Likewise.
15141         * config/ia64/ia64intrin.h: Likewise.
15142         * config/ia64/linux.h: Likewise.
15143         * config/ia64/unwind-aix.c: Likewise.
15144         * config/ia64/unwind-ia64.c: Likewise.
15145
15146 2002-01-20  Kazu Hirata  <kazu@hxi.com>
15147
15148         * config/h8300/h8300.c: Revise comments about shift code.
15149
15150 2002-01-20  Kazu Hirata  <kazu@hxi.com>
15151
15152         * config/h8300/h8300.c (function_arg): Update a comment.
15153
15154 2002-01-20  Kazu Hirata  <kazu@hxi.com>
15155
15156         * config/h8300/h8300.md: Update the comments at the beginning
15157         of the file.
15158
15159 2002-01-20  Kazu Hirata  <kazu@hxi.com>
15160
15161         * config/i370/i370.c: Fix comment formatting.
15162         * config/i370/i370.h: Likewise.
15163         * config/i370/i370.md: Likewise.
15164         * config/i370/linux.h: Likewise.
15165
15166 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15167
15168         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
15169
15170         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
15171         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
15172         in incomplete case.
15173
15174 2002-01-20  Graham Stott  <grahams@redhat.com>
15175
15176         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
15177
15178 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15179
15180         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
15181
15182 2002-01-19  Tom Rix  <trix@redhat.com>
15183
15184         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
15185
15186 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
15187
15188         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
15189
15190         * function.c (assign_stack_local_1): Adjust x_frame_offset with
15191         STARTING_FRAME_PHASE.
15192         (STARTING_FRAME_PHASE): New.
15193         (instantiate_virtual_regs): Check saneness of
15194         STARTING_FRAME_PHASE.
15195
15196         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
15197
15198 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
15199
15200         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
15201
15202 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
15203
15204         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
15205         be used for bootstrapping GCC 3.0.
15206
15207 2002-01-18  Kazu Hirata  <kazu@hxi.com>
15208
15209         * config/h8300/h8300.md: Fix an insn length.
15210
15211 2002-01-18  Kazu Hirata  <kazu@hxi.com>
15212
15213         * bitmap.h: Fix comment formatting.
15214         * combine.c: Likewise.
15215         * cppfiles.c: Likewise.
15216         * c-pragma.h: Likewise.
15217         * c-typeck.c: Likewise.
15218         * df.c: Likewise.
15219         * dwarf2out.c: Likewise.
15220         * function.c: Likewise.
15221         * gcc.c: Likewise.
15222         * genattrtab.c: Likewise.
15223         * gthr-win32.h: Likewise.
15224         * haifa-sched.c: Likewise.
15225         * predict.c: Likewise.
15226         * rtlanal.c: Likewise.
15227         * rtl.h: Likewise.
15228         * unwind-dw2-fde.h: Likewise.
15229         * unwind-pe.h: Likewise.
15230         * vmsdbgout.c: Likewise.
15231
15232 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15233
15234         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
15235         if type_required and passed decl.
15236
15237 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
15238
15239         * config.gcc (cpu_type): Include altivec.h in powerpc
15240         extra_headers.
15241         Same for darwin.
15242
15243         * config/rs6000/altivec.h: New.
15244
15245 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
15246
15247         * doc/install.texi (*-ibm-aix*): Update assembler and exception
15248         handling information.
15249         * doc/trouble.texi (Interoperation): Add libstdc++ information
15250         for AIX.
15251         (Misunderstandings): Add template instantiation and static template
15252         member information for AIX.
15253
15254 2002-01-17  Jason Merrill  <jason@redhat.com>
15255
15256         * dbxout.c (dbxout_type): Support const and volatile.
15257
15258         * except.c (add_partial_entry): Remove backwards compatibility code.
15259         (end_protect_partials): Likewise.
15260
15261 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
15262
15263         * config/ia64/ia64.md (prologue_use): New.
15264         * config/ia64/ia64.c (ia64_expand_prologue): Use
15265         gen_prologue_use instead of gen_rtx_USE.
15266         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
15267         as CODE_FOR_pred_rel_mutex.
15268         (ia64_sched_reorder2): Likewise.
15269
15270 2002-01-16  Eric Christopher  <echristo@redhat.com>
15271
15272         * config/mips/r3900.h: Reformat.
15273         (SUBTARGET_CPP_SIZE_SPEC): Remove.
15274         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
15275         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
15276         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
15277         * config/mips/t-elf: Remove mips3 multilib.
15278
15279 2002-01-16  H.J. Lu <hjl@gnu.org>
15280
15281         * config/mips/linux.h: Include "mips/abi64.h".
15282
15283 2002-01-16  H.J. Lu <hjl@gnu.org>
15284
15285         * config/mips/t-linux: New.
15286
15287         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
15288
15289         * config/mips/linux.h: Don't include "gofast.h".
15290         (INIT_SUBTARGET_OPTABS): Removed.
15291
15292 2002-01-16  Kazu Hirata  <kazu@hxi.com>
15293
15294         * config/h8300/h8300-protos.h: Replace emit_a_shift with
15295         output_a_shift.
15296         * config/h8300/h8300.c: Likewise.
15297         * config/h8300/h8300.md: Likewise.
15298
15299 2002-01-16  Kazu Hirata  <kazu@hxi.com>
15300
15301         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
15302         spaces after an opcode name.
15303         (pushqi1_h8300hs): Likewise.
15304         (pushhi1_h8300hs): Likewise.
15305
15306 2002-01-16  Kazu Hirata  <kazu@hxi.com>
15307
15308         * doc/extend.texi: Replace "option" with "attribute"
15309         appropriately.
15310
15311 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
15312
15313         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
15314         (and:DI () (const_int -8)).
15315         (split_small_symbolic_mem_operand): Split
15316         (mem (and:DI () (const_int -8)).
15317
15318 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
15319
15320         PR target/5309:
15321         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
15322         same way as TYPE_IMUL.
15323         (ultrasparc_sched_reorder): Likewise.
15324         * config/sparc/sparc.md (type): Add comment to update
15325         ultrasparc_sched_reorder when making changes.
15326
15327 2002-01-16  Kazu Hirata  <kazu@hxi.com>
15328
15329         * doc/invoke.texi: Change the dump file name of block
15330         reordering pass from 28.bbro to 29.bbro.
15331         Mention -dk option.
15332
15333 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
15334
15335         * i386.md (minsf splitter): Fix pasto.
15336
15337 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
15338
15339         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
15340         to frame pointer initialisation instruction.
15341         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
15342         initialisation instruction.
15343         (soft_df_operand): Do not accept the IP register.
15344         (nonimmediate_soft_df_operand): Do not accept the IP register.
15345
15346 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
15347
15348         PR target/5357:
15349         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
15350         MASK_V8 being both set.
15351
15352 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
15353
15354         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
15355         insn for GOT register; add REG_MAYBE_DEAD notes instead.
15356         config/s390/s390.md (call, call_value): Add GOT register to
15357         CALL_INSN_FUNCTION_USAGE where needed.
15358         (call_exp, call_value_exp): New.
15359
15360 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
15361
15362         * config/arm/arm.c: General formatting tidy up.
15363
15364 2002-01-16  Graham Stott  <grahams@redhat.com>
15365
15366         * calls.c (try_to_integrate): Use "(size_t)" intermediate
15367         cast and when casting an integer literal to "rtx" pointer.
15368         (expand_call): Likewise.
15369         * flow.c (try_pre_increment): Likewise.
15370         (find_use_as_address): Likewise.
15371         * integrate.c (expand_iline_function): Likewise.
15372         * regmove.c (try_auto_increment): Likewise.
15373
15374 2002-01-16  Graham Stott  <grahams@redhat.com>
15375
15376         * sched-rgn.c (passed): Use sbitmap_free.
15377         (header): Likewise.
15378         (inner): Likewise.
15379         (in_queue): Likewise.
15380         (in_stack): Likewise.
15381
15382 2002-01-15  Eric Christopher  <echristo@redhat.com>
15383
15384         * flow.c (propagate_one_insn): Change to use fatal_insn.
15385
15386 2002-01-15  Kazu Hirata  <kazu@hxi.com>
15387
15388         * expmed.c (extract_fixed_bit_field): Remove unused code.
15389         * system.h: Poison SLOW_ZERO_EXTEND.
15390         * doc/tm.texi: Remove.
15391         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
15392         * config/arm/arm.h: Likewise.
15393         * config/avr/avr.h: Likewise.
15394         * config/clipper/clipper.h: Likewise.
15395         * config/convex/convex.h: Likewise.
15396         * config/d30v/d30v.h: Likewise.
15397         * config/dsp16xx/dsp16xx.h: Likewise.
15398         * config/elxsi/elxsi.h: Likewise.
15399         * config/fr30/fr30.h: Likewise.
15400         * config/h8300/h8300.h: Likewise.
15401         * config/i370/i370.h: Likewise.
15402         * config/i386/i386.h: Likewise.
15403         * config/m68k/m68k.h: Likewise.
15404         * config/mips/mips.h: Likewise.
15405         * config/ns32k/ns32k.h: Likewise.
15406         * config/pdp11/pdp11.h: Likewise.
15407         * config/pj/pj.h: Likewise.
15408         * config/s390/s390.h: Likewise.
15409         * config/sh/sh.h: Likewise.
15410         * config/stormy16/stormy16.h: Likewise.
15411         * config/v850/v850.h: Likewise.
15412         * config/vax/vax.h: Likewise.
15413         * config/we32k/we32k.h: Likewise.
15414
15415 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
15416
15417         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
15418         (altivec_lvsl): Change constraint to b.
15419         (altivec_lvsr): Same.
15420         (altivec_lvebx): Same.
15421         (altivec_lvehx): Same.
15422         (altivec_lvewx): Same.
15423         (altivec_lvxl): Same.
15424         (altivec_lvx): Same.
15425         (altivec_stvx): Add parallel.
15426         (altivec_stvxl): Same.
15427         (altivec_stvehx): Same.
15428         (altivec_stvebx): Same.
15429         (altivec_stvebx): Same.
15430
15431 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
15432
15433         * config.gcc: Change altivec.h to altivec-defs.h.
15434
15435         * config/rs6000/altivec.h: Delete.
15436
15437         * config/rs6000/altivec-defs.h: Add.
15438
15439 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15440
15441         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
15442         and UMOD modes.
15443
15444         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
15445         less than or equal to eight bytes.
15446
15447         * vax.md (andsi3): Remove constraints and change SET destination
15448         operand type to nonimmediate_operand.
15449         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
15450         when it is a CONST_INT.
15451
15452 2002-01-15  Jason Merrill  <jason@redhat.com>
15453
15454         * c-common.def (FILE_STMT): New code.
15455         * c-common.c (statement_code_p): It's a statement.
15456         * c-common.h (stmt_tree_s): Add x_last_filename.
15457         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
15458         (last_expr_filename): New macro.
15459         * c-semantics.c (begin_stmt_tree): Initialize it.
15460         (add_stmt): If the filename changed, also insert a
15461         FILE_STMT.
15462         (expand_stmt): Handle seeing one.
15463
15464 2002-01-15  Eric Christopher  <echristo@redhat.com>
15465
15466         * flow.c (propagate_one_insn): Add error message and print out
15467         insn for debugging.
15468
15469 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
15470
15471         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
15472         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
15473         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
15474         TRAMPOLINE_ALIGNMENT.
15475         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
15476         to be in bits.
15477         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
15478         PCC_BITFIELD_TYPE_MATTERS.
15479         * config/interix.h (STDC_VALUE): Remove.  Use
15480         STDC_0_IN_SYSTEM_HEADERS.
15481         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
15482         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
15483         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
15484
15485 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
15486
15487         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
15488         not work on this platform currently.
15489
15490 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
15491
15492         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
15493         readonly_warning in _().
15494
15495 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
15496
15497         * gcc.c (delete_if_ordinary): Backout previous change.
15498
15499 2002-01-15  Kazu Hirata  <kazu@hxi.com>
15500
15501         * config/h8300/h8300.c (print_operand): Remove support for
15502         unused operand characters.
15503
15504         * read-rtl.c: Fix formatting.
15505         * real.c: Likewise.
15506         * recog.c: Likewise.
15507         * regclass.c: Likewise.
15508         * regmove.c: Likewise.
15509         * reg-stack.c: Likewise.
15510         * reload1.c: Likewise.
15511         * rtlanal.c: Likewise.
15512
15513 2002-01-15  Kazu Hirata  <kazu@hxi.com>
15514
15515         * config/i386/i386.c: Fix formatting.
15516
15517 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
15518
15519         * c-typeck.c (process_init_element): Don't save_expr
15520         COMPOUND_LITERAL_EXPR if just its initializer will be used.
15521
15522 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
15523
15524         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
15525         emit optional traceback table if optimize_size or TARGET_ELF.
15526         * config/rs6000/rs6000.md (prefetch): New.
15527
15528 2002-01-15  Andreas Jaeger  <aj@suse.de>
15529
15530         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
15531
15532 2002-01-15  Kazu Hirata  <kazu@hxi.com>
15533
15534         * mips-tfile.c: Fix formatting.
15535
15536 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
15537
15538         * unroll.c (final_reg_note_copy): Fix previous commit.
15539
15540 2002-01-14  Kazu Hirata  <kazu@hxi.com>
15541
15542         * config/h8300/h8300-protos.h: Remove the prototype for
15543         eq_operator.
15544         * config/h8300/h8300.c (eq_operator): Remove.
15545
15546 2002-01-14  Richard Henderson  <rth@redhat.com>
15547
15548         * config/i386/i386.md (prefetch): Tidy.
15549         (prefetch_3dnow): Fix locality operand.
15550
15551 2002-01-14  Richard Henderson  <rth@redhat.com>
15552
15553         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
15554         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
15555
15556 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
15557
15558         * reload1.c (reload_combine): Pass reg_sum replacement through
15559         copy_rtx in loop performing multiple changes.
15560
15561 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
15562
15563         * except.c (remove_unreachable_regions): New.
15564         (free_eh_status): Clear exception_handler_labels.
15565         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
15566         (find_exception_handler_labels): Don't add the same label more than
15567         once.
15568         (remove_exception_handler_label): Don't die if
15569         find_exception_handler_labels hasn't been called for the current
15570         function yet.
15571
15572 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
15573
15574         * toplev.c (rest_of_compilation): Rebuild jump labels after
15575         gcse.
15576
15577 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
15578
15579         * doc/extend.texi: Move documentation of X86 built-in functions
15580         here.
15581         * doc/invoke.texi: From here.
15582         * doc/sourcebuild.texi: Document location of documentation for
15583         machine built-in functions.
15584
15585 2002-01-13  Christopher Faylor  <cgf@redhat.com>
15586
15587         * cppfiles.c (TEST_THRESHOLD): New macro.
15588         (SHOULD_MMAP): Ditto.
15589         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
15590         be used.
15591
15592 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
15593
15594         * unroll.c (final_reg_note_copy): Properly handle
15595         REG_LABEL
15596         (unroll_loops): Fix LOOP_CONDITION heuristics.
15597
15598 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
15599
15600         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
15601         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
15602
15603 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
15604
15605         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
15606         threaded loop.
15607
15608 2002-01-14  Tom Rix  <trix@redhat.com>
15609
15610         * config/rs6000/rs6000.md: Fix typo with sradi.
15611
15612 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
15613
15614         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
15615         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
15616         (clrstrdi, clrstrsi): Adapt callers.
15617
15618         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
15619
15620         (movti splitter): Never use register 0 as base register.
15621
15622 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
15623
15624         * combine.c (simplify_shift_const): Always generate new rtx
15625         for shift expression instead of reusing given expression.
15626
15627 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15628
15629         * config/alpha/alpha.c (alpha_expand_mov): Don't call
15630         alpha_legitimize_address unless mode is Pmode.
15631
15632 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
15633
15634         * doc/md.texi (Modifiers): Document the '*' constraint for the
15635         user.
15636
15637         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
15638         * doc/extend.texi (Function Attributes): 'interrupt' is valid
15639         for xstormy16 too.
15640
15641 2002-01-13  Richard Henderson  <rth@redhat.com>
15642
15643         * reload.c (find_reloads): Use a hard reg destination as reload reg
15644         for an input reload of the source.
15645
15646 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
15647
15648         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
15649         more generic.
15650
15651 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
15652
15653         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
15654         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
15655
15656         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
15657
15658 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15659
15660         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
15661
15662 2002-01-12  Tom Rix  <trix@redhat.com>
15663
15664         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
15665         TARGET_POWERPC64.
15666
15667 2002-01-12  Richard Henderson  <rth@redhat.com>
15668
15669         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
15670
15671         * doc/invoke.texi: Update Alpha options.
15672
15673         * doc/invoke.texi: Update i386 built-in function lists.
15674
15675 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
15676
15677         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
15678         referencing outside.
15679
15680 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15681
15682         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
15683         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
15684         offsets, and change line folding.
15685         * optabs.c (expand_binop): Remove warnings.
15686         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
15687
15688 2002-01-12  Graham Stott <grahams@redhat.com>
15689
15690         * attribs.c (handle_deprecated_attribute): constify WHAT.
15691         * diagnostic.c (warn_deprecated_use): Add braces, fixes
15692         dangling else warning and constify WHAT.
15693         * except.h (struct function, struct inline_remap): Move
15694         struct tag forward defs before all prototypes.
15695         (duplicate_eh_regions): Whitespace.
15696
15697 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
15698
15699         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
15700         MODE_BASE_REG_CLASS.
15701         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
15702
15703 2002-01-12  Richard Henderson  <rth@redhat.com>
15704
15705         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
15706         (ix86_expand_vector_move): New.
15707         (bdesc_2arg): Remove andps, andnps, orps, xorps.
15708         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
15709         Remove old prefetch builtins.  Special case the logicals removed above.
15710         (ix86_expand_builtin): Likewise.
15711         (safe_vector_operand): Use V4SFmode, not TImode.
15712         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
15713         (ix86_expand_timode_binop_builtin): New.
15714         * config/i386/i386-protos.h: Update.
15715         * config/i386/i386.h (enum ix86_builtins): Update.
15716         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
15717         Use ix86_expand_vector_move in vector move expanders.
15718         (movti_internal, movti_rex64): Add xorps alternative.
15719         (sse_clrv4sf): Rename and adjust from sse_clrti.
15720         (prefetch): Don't work so hard.
15721         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
15722         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
15723         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
15724
15725 2002-01-11  Richard Henderson  <rth@redhat.com>
15726
15727         * config/i386/mmintrin.h: New file.
15728         * config/i386/xmmintrin.h: New file.
15729         * config.gcc (i?86-*-*): Add extra_headers.
15730         * simplify-rtx.c (simplify_unary_operation): Handle saturating
15731         truncation codes.
15732         (simplify_binary_operation): Handle saturating arithmetic codes.
15733         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
15734         not the lowpart subreg.
15735         (ix86_expand_builtin): Return a TImode dummy register instead of 0
15736         on error.
15737         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
15738
15739 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
15740
15741         * conflict.c (conflict_graph_compute): Free regsets when finished.
15742         * ssa.c (compute_coalesced_reg_partition): Likewise.
15743
15744 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
15745
15746         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
15747         every where we allocate a register.
15748
15749 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
15750
15751         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
15752         * lcm.c (compute_earliest, compute_farthest): Likewise.
15753
15754 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
15755
15756         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
15757
15758 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
15759
15760         * doc/rtl.texi (Insns): Fix 2 typos.
15761
15762 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
15763
15764         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
15765         options.  Use @table @gcctabopt for MMIX options.  Add index
15766         entries for MMIX options.  Start new paragraph with first
15767         heading of the machine-dependent options.
15768
15769 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
15770
15771         PR other/5299
15772         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
15773         * combine.c (force_to_mode): Same.
15774         * reload1.c (clear_reload_reg_in_use): Same.
15775
15776 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
15777
15778         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
15779         and 'subtargets'.
15780
15781 2002-01-11  Andreas Jaeger  <aj@suse.de>,
15782             Brad Lucier <lucier@math.purdue.edu>
15783
15784         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
15785         mcpu.
15786
15787 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
15788
15789         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
15790         Protect with IN_LIBGCC.
15791         (LINK_EH_SPEC): Add required trailing space.
15792
15793 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
15794
15795         * c-tree.h: Move function declarations so that they are listed
15796         under the filename which contains them.
15797         (check_identifier, finish_decl_top_level,
15798         lookup_name_current_level_global, shadow_record_fields): Remove.
15799
15800 2002-01-11  Andreas Jaeger  <aj@suse.de>
15801
15802         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
15803         march.
15804
15805 2002-01-10  Richard Henderson  <rth@redhat.com>
15806
15807         * config/alpha/alpha.c (print_operand): Add 'J'.
15808         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
15809         new operand with the sequence number for the lituse.  When splitting
15810         the insns, use gen_movdi_er_high_g and generate a sequence number.
15811         (gen_movdi_er_high_g): Print the sequence number if non-zero.
15812
15813 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
15814
15815         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
15816         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
15817         stvxl.
15818         (altivec_expand_builtin): Same.
15819         (altivec_expand_stv_builtin): New.
15820
15821         * config/rs6000/rs6000.h (rs6000_builtins): Same.
15822
15823         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
15824         ("altivec_lvehx"): New.
15825         ("altivec_lvewx"): New.
15826         ("altivec_lvxl"): New.
15827         ("altivec_lvx"): New.
15828         ("altivec_stvx"): New.
15829         ("altivec_stvebx"): New.
15830         ("altivec_stvehx"): New.
15831         ("altivec_stvewx"): New.
15832         ("altivec_stvxl"): New.
15833
15834 2002-01-10  Richard Henderson  <rth@redhat.com>
15835
15836         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
15837         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
15838         care not to delete instructions twice.
15839
15840 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
15841
15842         * toplev.c: Don't declare environ (it's not used anywhere).
15843         * configure.in: Don't check for declaration of environ.
15844         * config/i386/xm-mingw32.h: Don't #define environ.
15845         * config.in, configure: Regenerate.
15846
15847 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
15848
15849         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
15850         * configure: Regenerate.
15851
15852         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
15853         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
15854         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
15855         alpha/xm-vms.h.
15856         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
15857         LIMITS_H_TEST here, not in m68k/x-next.
15858         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
15859         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
15860
15861         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
15862         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
15863         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
15864
15865         * config/i386/x-djgpp: Renamed i386/t-djgpp.
15866         * config/m88k/x-dolph: Renamed m88k/t-dolph.
15867         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
15868         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
15869         replacement of quadlib.asm with quadlib.c.
15870
15871         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
15872         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
15873         config/rs6000/xm-beos.h: Delete file.
15874
15875         * config.gcc: Update to match above changes.
15876
15877 2002-01-10  Kazu Hirata  <kazu@hxi.com>
15878
15879         * config/h8300/h8300.h: Fix comment typos.
15880         * config/h8300/h8300.md: Likewise.
15881         * config/h8300/lib1funcs.asm: Likewise.
15882
15883 2002-01-10  Dale Johannesen  <dalej@apple.com>
15884
15885         PR optimization/5269
15886         * unroll.c (precondition_loop_p): Make *increment be the correct
15887         sign when n_iterations known, to avoid confusing caller.
15888
15889 2002-01-10  Kazu Hirata  <kazu@hxi.com>
15890
15891         * doc/extend.texi (deprecated): Fix a typo.
15892
15893 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
15894
15895         * basic-block.h (update_br_prob_note): Declare.
15896         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
15897         (try_forward_edges): Care negative frequencies and update note.
15898         (outgoing_edges_match): Tweek conditional merging heuristics.
15899         (try_crossjump_to_edge): use update_br_prob_note.
15900         * cfglayout.c (fixup_reorder_chain): Likewise.
15901         * cfrtl.c (update_br_prob_note): New.
15902         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
15903
15904         * i386.c (ix86_decompose_address): Return -1 if address contains
15905         shift.
15906         (legitimate_address_p): Require ix86_decompose_address to return 1.
15907
15908         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
15909         (cprop_insn): Likewise.
15910
15911 2002-01-10  Kazu Hirata  <kazu@hxi.com>
15912
15913         * toplev.c: Fix formatting.
15914         * tree.c: Likewise.
15915         * tree-dump.c: Likewise.
15916         * unroll.c: Likewise.
15917         * unwind-dw2.c: Likewise.
15918         * unwind-dw2-fde.c: Likewise.
15919         * unwind-dw2-fde-glibc.c: Likewise.
15920         * unwind-sjlj.c: Likewise.
15921
15922 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
15923
15924         * doc/invoke.texi: Document PDP-11 options.
15925
15926 2002-01-10  Kazu Hirata  <kazu@hxi.com>
15927
15928         * config/h8300/h8300.h: Fix formatting.
15929
15930 2002-01-10  Ira Ruben   <ira@apple.com>
15931
15932         Add __attribute__ ((deprecated)).
15933         * extend.texi: Document __attribute__ ((deprecated)).
15934         * invoke.texi: Document -Wno-deprecated-declarations.
15935         * testsuite/g++.dg/other/deprecated.C: New C++ test.
15936         * testsuite/gcc.dg/deprecated.c: New C test.
15937         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
15938         (c_common_attribute_table): Add "deprecated" entry.
15939         (handle_deprecated_attribute): New function.
15940         * c-decl.c (deprecated_states): New enum.
15941         deprecated_state: State of "deprecated" handling.
15942         (start_decl): Set deprecated_state based on attributes.
15943         (grokdeclarator): Test for deprecated uses, propagate attribute.
15944         * c-typeck.c (build_component_ref): Test for deprecated fields.
15945         (build_external_ref): Test for deprecated primaries.
15946         * diagnostic.c (warn_deprecated_use) New function to issue
15947         warnings about __attribute__ ((depricated)) references.
15948         * flags.h (warn_deprecated_decl): Extern declared for
15949         -W[no-]deprecated-declarations option.
15950         * print-tree.c (print_node): Show deprecated flag status.
15951         * toplev.c (warn_deprecated_decl): Defined.
15952         (W_options): Added "deprecated-declaration".
15953         * toplev.h (warn_deprecated_use): Extern declared.
15954         * tree.h (struct tree_common): Define deprecated_flag.
15955         (TREE_DEPRECATED): New macro to access flag.
15956         * cp/call.c (build_call): Test for deprecated calls.
15957         * cp/class.c (add_implicitly_declared_members): Set global
15958         flag to tell grokdeclarator to not issue deprecated warnings.
15959         * cp/cp-tree.h: Add extern for adding_implicit_members.
15960         * cp/decl.c (deprecated_states): New enum.
15961         (start_decl): Set deprecated_state based on attributes.
15962         (grokdeclarator): Test for deprecated uses, propagate attribute.
15963         * cp/lex.c (do_identifier): Test for deprecated primaries.
15964         * cp/typeck.c (build_component_ref): Test for deprecated fields.
15965
15966 2002-01-10  Ira Ruben   <ira@apple.com>
15967
15968         Fix to assign attributes to inline member functions.
15969         * cp/decl.c (start_method): Handle attrlist.
15970
15971 2002-01-10  Kazu Hirata  <kazu@hxi.com>
15972
15973         * combine.c (expand_field_assignment): Use subreg_lsb().
15974
15975 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
15976
15977         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
15978         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
15979         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
15980         Recurse for any operand of AND as long as constant is non-zero.
15981
15982 2002-01-10  Kazu Hirata  <kazu@hxi.com>
15983
15984         * config/h8300/h8300.md: Remove constraints from expanders.
15985
15986 2002-01-10  Kazu Hirata  <kazu@hxi.com>
15987
15988         * varasm.c: Fix formatting.
15989         * varray.c: Likewise.
15990         * vmsdbgout.c: Likewise.
15991         * xcoffout.c: Likewise.
15992
15993 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
15994
15995         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
15996         update edge probabilities to match.
15997
15998 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
15999
16000         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
16001         dependencies.
16002         * doc/languages.texi, doc/sourcebuild.texi: New files.
16003         * doc/configfiles.texi: Make a subsubsection.  Update.
16004         * doc/configterms.texi: Add @node.  Remove warning that this isn't
16005         instructions for building GCC.
16006         * doc/makefile.texi: Make a subsection.
16007         * doc/gccint.texi: Update.
16008
16009 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
16010
16011         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
16012
16013 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
16014
16015         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
16016
16017 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
16018
16019         * optabs.c (expand_fix): Look for wider integer modes first.
16020
16021         * i386.md (mov?f): Avoid the fake const double trick for medium
16022         memory model.
16023         (min?f*/max?f*): Prohibit memory operands for i387 variant.
16024         (fop_df_4): Disable for SSE compilation.
16025
16026 2002-01-10  Graham Stott  <grahams@redhat.com>
16027
16028         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
16029         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
16030
16031 2002-01-10  Richard Henderson  <rth@redhat.com>
16032
16033         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
16034
16035 2002-01-10  Richard Henderson  <rth@redhat.com>
16036
16037         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
16038         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
16039
16040 2002-01-10  Kazu Hirata  <kazu@hxi.com>
16041
16042         * combine.c (can_combine_p): Fix a comment typo.
16043
16044 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
16045
16046         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
16047         empty list correctly.  Change loop index $t to $f for
16048         consistency with rest of Makefile.
16049
16050 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
16051
16052         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
16053         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
16054
16055         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
16056         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
16057         (altivec_init_builtins): Same.
16058         (altivec_expand_unop_builtin): Return NULL_RTX on error.
16059         (altivec_expand_binop_builtin): Same.
16060         (altivec_expand_ternop_builtin): Same.
16061         (bdesc_dst): New.
16062
16063         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
16064         ("altivec_vctuxs"): Fix typo.
16065         ("altivec_vnmsubfp"): Same.
16066         ("altivec_dssall"): New.
16067         ("altivec_mfvscr"): New.
16068         ("altivec_dss"): New.
16069         ("altivec_lvsl"): New.
16070         ("altivec_lvsr"): New.
16071         ("altivec_dstt"): New.
16072         ("altivec_dstst"): New.
16073         ("altivec_dststt"): New.
16074         ("altivec_dst"): New.
16075
16076         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
16077         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
16078
16079 2002-01-09  Richard Henderson  <rth@redhat.com>
16080
16081         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
16082
16083 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
16084
16085         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
16086         function.
16087         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
16088         prototype.
16089         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
16090
16091 2002-01-09  Kazu Hirata  <kazu@hxi.com>
16092
16093         * read-rtl.c: Fix formatting.
16094         * real.c: Likewise.
16095         * regclass.c: Likewise.
16096         * regrename.c: Likewise.
16097         * reg-stack.c: Likewise.
16098         * reload1.c: Likewise.
16099         * reload.c: Likewise.
16100         * rtl.c: Likewise.
16101
16102 2002-01-09  Kazu Hirata  <kazu@hxi.com>
16103
16104         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
16105         to extract items in the expr_list chain.
16106
16107 2002-01-09  Richard Henderson  <rth@redhat.com>
16108
16109         * config/vax/vax.c (vax_rtx_cost): Never abort.
16110
16111         * config/vax/vax.h (REAL_ARITHMETIC): Define.
16112
16113 2002-01-09  Jan Hubicka  <jh@suse.cz>
16114
16115         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
16116
16117 2002-01-09  Richard Henderson  <rth@redhat.com>
16118
16119         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
16120         Unify code from various alternatives.
16121
16122 2002-01-09  Richard Henderson  <rth@redhat.com>
16123
16124         * regrename.c (copy_value): Ignore the copy if the source register
16125         is present in the value chain with a narrower mode.
16126
16127 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
16128
16129         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
16130         for the c4x target. Also improve layout.
16131
16132 2002-01-09  Richard Henderson  <rth@redhat.com>
16133
16134         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
16135         * config/m32r/m32r.md (and ior xor splitters): Swap operands
16136         to match insn patterns.
16137
16138 2002-01-09  Richard Henderson  <rth@redhat.com>
16139
16140         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
16141         (copyprop_hardreg_forward_1): Likewise.
16142
16143 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16144
16145         * pa.md (decrement_and_branch_until_zero): Change predicate for
16146         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
16147
16148 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
16149
16150         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
16151         gets undefined. For Darwin.
16152
16153 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
16154
16155         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
16156
16157 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
16158
16159         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
16160
16161 2002-01-08  Richard Henderson  <rth@redhat.com>
16162
16163         * regrename.c (copy_value): Ignore overlapping copies.
16164
16165 2002-01-08  Richard Henderson  <rth@redhat.com>
16166
16167         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
16168         as needed to avoid shared structure.
16169
16170 2002-01-08  Kazu Hirata  <kazu@hxi.com>
16171
16172         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
16173         H8/300H and H8/S.
16174
16175 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
16176
16177         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
16178         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
16179         documentation of obsolete macros.
16180         * system.h: Poison these macros.
16181         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
16182         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
16183         config/c4x/c4x.h, config/clipper/clipper.h,
16184         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
16185         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
16186         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
16187         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
16188         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
16189         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
16190         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
16191         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
16192         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
16193         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
16194         config/sparc/sparc.h, config/stormy16/stormy16.h,
16195         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
16196         definitions and commented out definitions of obsolete macros.
16197         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
16198         of MAX_INT_TYPE_SIZE.
16199
16200 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
16201
16202         * config/s390/s390.c (s390_preferred_reload_class): Never
16203         return ADDR_REGS if it isn't a subset of the given class.
16204         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
16205         FP_REGS, but all superclasses as well.
16206
16207         * config/s390/s390.c (s390_function_profiler): Fix thinko.
16208
16209         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
16210         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
16211         must not be a const_int.
16212
16213 2002-01-08  Richard Henderson  <rth@redhat.com>
16214
16215         * Makefile.in (toplev.o): Depend on options.h.
16216         (gcc.o): Depend on specs.h.
16217
16218 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
16219
16220         * expr.c (store_expr): Convert VOIDmode constants back to target's
16221         mode.
16222
16223 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
16224
16225         * doc/invoke.texi: Markup gcc as @command.  Refer to
16226         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
16227         of http://gcc.gnu.org/thanks.html.
16228
16229 2002-01-08  Dale Johannesen  <dalej@apple.com>
16230
16231         * config/rs6000/rs6000.md: Add missing int register
16232         target case to movdf_low.
16233
16234 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
16235
16236         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
16237         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
16238         (cppinit.o): Depend on except.h.
16239         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
16240         s-specs): New rules.
16241
16242         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
16243         Don't create specs.h/options.h/gencheck.h here.  Remove
16244         unnecessary variable settings from last argument of AC_OUTPUT.
16245         * config.in, configure: Regenerate.
16246         * intl.c: Hardcode package name as "gcc".
16247
16248         * cppinit.c: Include except.h.
16249         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
16250         appropriate.
16251         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
16252         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
16253         (!)USING_SJLJ_EXCEPTIONS.
16254         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
16255
16256 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
16257
16258         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
16259         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
16260         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
16261         documentation of obsolete macros.
16262         * system.h: Poison these macros.
16263         * config/d30v/d30v.h, config/ns32k/encore.h,
16264         config/stormy16/stormy16.h: Remove definitions and commented out
16265         definitions of obsolete macros.
16266
16267 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
16268
16269         * objc/objc-act.c (handle_class_ref): Mark the declaration of
16270         %sobjc_class_ref_%s as used - to prevent unwanted compiler
16271         warnings.
16272
16273 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
16274
16275         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
16276         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
16277         to insn adjusting stack/frame pointer.
16278         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
16279         accept operands that cause the insn to be non-splittable.
16280
16281 2002-01-08  Graham Stott  <grahams@redhat.com>
16282
16283         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
16284         (C_TYPE_FIELDS_VOLATILE): Likewise.
16285         (C_TYPE_BEING_DEFINED): Likewise.
16286         (C_IS_RESERVED_WORD): Likewise.
16287         (C_TYPE_VARIABLE_SIZE): Likewise.
16288         (C_DECL_VARIABLE_SIZE): Likewise.
16289         (C_MISSING_PROTOTYPE_WARNED): Likewise.
16290         (C_SET_EXP_ORIGINAL_CODE): Likewise.
16291         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
16292         parenthesis.
16293         (C_DECL_ANTICIPATED): Likewise.
16294         (c_build_type_variant): Add parenthesis.
16295
16296 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
16297
16298         * gcc.c (option_map): Remove --version.
16299         (process_command): Handle -fversion following the GNU Coding
16300         Standards.  Partially addresses PR other/704.
16301
16302 2002-01-08  Graham Stott  <grahams@redhat.com>
16303
16304         * combine.c (combine_instructions): Fix typo.
16305
16306 2002-01-08  Graham Stott  <grahams@redhat.com>
16307
16308         * debug.h: Use "tree" and "rtx" throughout.
16309
16310         * debug.c: Likewise.
16311
16312 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
16313
16314         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
16315         constant pool, use the pool's version of the symbol instead.
16316
16317 2002-01-07  Richard Henderson  <rth@redhat.com>
16318
16319         * regrename.c (find_oldest_value_reg): Ignore the value chain if
16320         the original register was copied in a mode with a fewer number of
16321         hard registers than the desired mode.
16322         (copyprop_hardreg_forward_1): Likewise.
16323         (debug_value_data): Fix loop test.
16324         * toplev.c (parse_options_and_default_flags): Reenable
16325         -fcprop-registers at -O1.
16326
16327 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
16328
16329         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
16330         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
16331
16332         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
16333         predicates.
16334
16335         * config/rs6000/rs6000.md: Add altivec predicate patterns.
16336
16337 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16338
16339         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
16340         (pa_output_function_prologue): Output local label at the beginning of
16341         the prologue when profiling.
16342         (hppa_profile_hook): Use the local label rather than the function label.
16343         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
16344
16345 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
16346
16347         * config/rs6000/rs6000.c (print_operand): Remove extra space.
16348         (altivec_expand_unop_builtin): Fix thinko.
16349         (altivec_expand_binop_builtin): Same.
16350         (altivec_expand_ternop_builtin): Same.
16351         (altivec_expand_builtin): Same.
16352
16353 2002-01-07  Richard Henderson  <rth@redhat.com>
16354
16355         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
16356
16357 2002-01-07  Jason Merrill  <jason@redhat.com>
16358
16359         * unwind-dw2.c (execute_cfa_program): Use < again.
16360
16361 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
16362
16363         * predict.c (combine_predictions_for_insn): Avoid division by zero.
16364
16365 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
16366
16367         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
16368         Don't allow -1 - x -> ~x simplifications in the first pass.
16369
16370 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
16371
16372         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
16373         arguments.
16374         (altivec_expand_binop_builtin): Same.
16375         (altivec_expand_unop_builtin): Same.
16376         (print_operand): Fix typo.
16377         (bdesc_1arg): Add vupk* variants.
16378
16379         * rs6000.h (rs6000_builtins): Add vupk* enums.
16380
16381         * rs6000.md: Add altivec_vupk* variants.
16382
16383 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
16384
16385         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
16386         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
16387         and last update dates.
16388
16389 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
16390
16391         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
16392
16393 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
16394
16395         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
16396         * config/avr/avr.h (CPP_SPEC): Likewise.
16397         (LINK_SPEC): Likewise.
16398         (CRT_BINUTILS_SPECS): Likewise.
16399         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
16400         * doc/invoke.texi (AVR Options): Document them.
16401
16402 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
16403
16404         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
16405         LABEL_NUSES.
16406
16407 2002-01-07  Graham Stott  <grahams@redhat.com>
16408
16409         * config/i386/i386.h: Update copyright date.
16410         (HALF_PIC_PTR): Add parenthesis.
16411         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
16412         (CONSTANT_ALIGNMENT): Add parenthesis.
16413         (DATA_ALIGNMENT): Likewise.
16414         (LOCAL_ALIGNMENT): Likewise.
16415         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
16416         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
16417         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
16418         (HARD_REGNO_NREGS): Add paranethesis.
16419         (VALID_SSE_REG_MODE): Whitespace.
16420         (VALID_MMX_REG_MODE): Whitespace.
16421         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
16422         (ix86_hard_regno_mode_ok): Add parenthesis.
16423         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
16424         (RETURN_IN_MEMORY): Whitespace.
16425         (N_REG_CLASSES): Add parenthesis.
16426         (INTEGER_CLASS_P): Add parenthesis and wrap.
16427         (FLOAT_CLASS_P): Likewise.
16428         (SSE_CLASS_P): Likewise.
16429         (MMX_CLASS_P): Likewise.
16430         (MAYBE_INTEGER_CLASS_P): Likewise.
16431         (MAYBE_FLOAT_CLASS_P): Likewise.
16432         (MAYBE_SSE_CLASS_P): Likewise.
16433         (MAYBE_MMX_CLASS_P): Likewise.
16434         (Q_CLASS_P): Likewise.
16435         (GENERAL_REGNO_P): Uppercase macro parameter.
16436         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
16437         (FP_REGNO_P): Likewise.
16438         (ANY_FP_REGNO_P): Uppercase macro parameter.
16439         (SSE_REGNO_P): Likewise.
16440         (SSE_REGNO): Likewise.
16441         (SSE_REG_P): Likewise.
16442         (SSE_FLOAT_MODE_P): Likewise.
16443         (MMX_REGNO_P): Likewise.
16444         (MMX_REG_P):Likewise.
16445         (STACK_REG_P): Likewise.
16446         (NON_STACK_REG_P): Likewise.
16447         (STACK_TOP_P): Likewise.
16448         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
16449         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
16450         (SECONDARY_MEMORY_NEEDED): Likewise.
16451         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
16452         (MD_ASM_CLOBBERS): Whitespace and wrap.
16453         (MUST_PASS_IN_STACK): Whitespace and wrap.
16454         (RETURN_POPS_ARGS): Add parenthesis.
16455         (INIT_CUMULATIVE_ARGS): Likewise.
16456         (FUNCTION_ARG): Likewise.
16457         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
16458         (SETUP_INCOMING_VARARGS): Likewise.
16459         (BUILD_VA_LIST_TYPE):  Add parenthesis.
16460         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
16461         parenthsis.
16462         (EXPAND_BUILTIN_VA_ARG): Likewise.
16463         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
16464         (INITIALIZE_TRAMPOLINE): Add parenthesis.
16465         (INITIAL_ELIMINATION_OFFSET): Likewise.
16466         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
16467         (REGNO_OK_FOR_BASE_P): Likewise.
16468         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
16469         (REGNO_OK_FOR_DIREG_P): Likewise.
16470         (REG_OK_FOR_INDEX_P): Whitespace.
16471         (REG_OK_FOR_BASE_P): Whitespace.
16472         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
16473         parenthesis.
16474         (FIND_BASE_TERM): Fix typo.
16475         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
16476         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
16477         (SYMBOLIC_CONST; Whitespace.
16478         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
16479         (ENCODE_SECTION_INFO): Whitespace.
16480         (FINALIZE_PIC): Remove do { ... } while (0).
16481         (PROMOTE_MODE): Wrap in do { ... } while (0).
16482         (CONST_COSTS): Whitespace.
16483         (RTX_COSTS): Add paramethesis, whitespace and wrap.
16484         (REGISTER_MOVE_COST): Add parenthesis.
16485         (MEMORY_MOVE_COST): Likewise.
16486         (EXTRA_CC_MODES): Whitespace.
16487         (SELECT_CC_MODE): Add parenthesis and whitespace.
16488         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
16489         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
16490         (ASM_OUTPUT_LABEL): Add paramethesis.
16491         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
16492         (ASM_OUTPUT_REG_POP): Likewise.
16493         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
16494         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
16495
16496         * config/i386/i386.c: Update copyright.
16497         (CHECK_STACK_LIMIT): Add parenthesis.
16498         (AT_BP): Uppercase macro parameter.
16499         (x86_64_int_parameter_registers): Constify.
16500         (x86_64_int_return_registers): Likewise.
16501         (ix86_compare_op0): Use rtx.
16502         (construct_container): Constify INTREG parameter.
16503         (function_arg): Use rtx.
16504
16505         * diagnostic.h: Update copyright date.
16506         (output_buffer_state): Add parenthesis.
16507         (output_buffer_format_args): Likewise.
16508
16509         * combine.c (combine_instructions): Replace XEXP (links, 0)
16510         with link.
16511
16512 2002-01-06  H.J. Lu <hjl@gnu.org>
16513
16514         * cfgcleanup.c (thread_jump): Fix 2 typos.
16515
16516 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
16517
16518         * config.gcc: Add support for --enable-altivec.
16519
16520 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
16521
16522         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
16523
16524 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
16525
16526         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
16527         __objc_class_name_*.
16528
16529 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
16530
16531         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
16532
16533 2002-01-06  Richard Henderson  <rth@redhat.com>
16534
16535         * reorg.c (emit_delay_sequence): Remove death notes, not merely
16536         nop them out.  Increment label reference count for REG_LABEL.
16537         (fill_slots_from_thread): Frob label reference count around
16538         delete_related_insns.
16539
16540 2002-01-05  Richard Henderson  <rth@redhat.com>
16541
16542         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
16543         jump threading.
16544
16545 2002-01-05  Richard Henderson  <rth@redhat.com>
16546
16547         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
16548         * integrate.c (output_inline_function): Likewise.
16549         * toplev.c (rest_of_compilation): Do it here instead.  Move call
16550         to remove_unnecessary_notes after emitting abstract instance.
16551         Force an emitted nested function to have its parent emited as well.
16552         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
16553         for null.
16554         (rtl_for_decl_location): Do not look at reload data structures
16555         before reload has run.
16556
16557 2002-01-05  Kazu Hirata  <kazu@hxi.com>
16558
16559         * cse.c: Fix formatting.
16560         * dwarf2asm.c: Likewise.
16561         * dwarf2out.c: Likewise.
16562         * explow.c: Likewise.
16563         * expmed.c: Likewise.
16564         * function.c: Likewise.
16565         * gcov.c: Likewise.
16566         * gencheck.c: Likewise.
16567         * genrecog.c: Likewise.
16568         * ggc-common.c: Likewise.
16569         * ggc-page.c: Likewise.
16570         * global.c: Likewise.
16571
16572 2002-01-05  Kazu Hirata  <kazu@hxi.com>
16573
16574         * combine.c: Fix formatting.
16575
16576 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
16577
16578         PR middle-end/1557
16579         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
16580
16581 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
16582
16583         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
16584         as 1 for __powerpc64__ as well.
16585
16586         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
16587
16588         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
16589         return it.
16590
16591 2002-01-05  Daniel Berlin  <dan@dberlin.org>
16592
16593         * lcm.c: Revert change, due to performance regression it causes on
16594         SPEC because it's slightly more conservative (sigh, I hate
16595         edge-based LCM).
16596
16597 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
16598
16599         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
16600
16601 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
16602
16603         * doc/cppinternals.texi: Update.
16604
16605 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
16606
16607         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
16608         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
16609         negatives.
16610         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
16611         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
16612         kludge for pre-october-14th mmix versions to handle new-found bug
16613         with PUSHJ/PUSHGO and the register stack.
16614         * config/mmix/mmix.h (struct machine_function): Rename member
16615         has_call_value_without_parameters to has_call_without_parameters.
16616         All referers changed.
16617         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
16618         TARGET_MASK_BRANCH_PREDICT): New macros.
16619         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
16620         -mno-reg-stack-fill-bug-workaround.
16621         * config/mmix/mmix.md ("call"): Set struct machine member
16622         has_call_without_parameters.
16623
16624 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
16625
16626         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
16627
16628 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
16629
16630         * cfgcleanup.c: Include tm_p.h
16631         (mark_effect): Fix handling of hard register; fix handling of SET
16632
16633 2002-01-04  Kazu Hirata  <kazu@hxi.com>
16634
16635         * config/h8300/h8300.md (anonymous patterns): Check that
16636         operands are registers before using REGNO on them.
16637
16638 2002-01-03  Roland McGrath  <roland@frob.com>
16639
16640         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
16641
16642 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
16643
16644         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
16645         * c-common.h (genrtl_expr_stmt_value): Likewise.
16646         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
16647         (expand_expr_stmt_value): Add maybe_last argument.
16648         Don't warn about statement with no effect if it is the last statement
16649         in expression statement.
16650         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
16651         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
16652         expand_expr_stmt_value.
16653         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
16654         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
16655         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
16656         as maybe_last to expand_expr_stmt_value.
16657
16658 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
16659
16660         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
16661         be passed in, do not build it.
16662         (c_begin_if_stmt): New function.
16663         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
16664         * c-common.h (c_expand_start_cond): Update prototype.
16665         (c_begin_if_stmt): Prototype new function.
16666         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
16667         * c-parse.in (if_prefix): Use c_begin_if_stmt,
16668         c_begin_while_stmt and c_finish_while_stmt_cond.
16669
16670 2002-01-04  William Cohen  <wcohen@redhat.com>
16671
16672         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
16673         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
16674         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
16675         * config/pa/som.h (ASM_FILE_START): Likewise.
16676
16677 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
16678
16679         * lcm.c: Include df.h.
16680         Add available_transfer_function prototype.
16681         (compute_available): Rework to use iterative dataflow framework.
16682         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
16683         with bb_info in df.h
16684         (available_transfer_function): New function.
16685
16686         * Makefile.in (lcm.o): add df.h to dependencies.
16687
16688 2002-01-04  Richard Henderson  <rth@redhat.com>
16689
16690         * config/alpha/alpha.c (some_operand): Accept HIGH.
16691         (input_operand): Likewise; accept simple references to globals.
16692         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
16693         (alpha_const_double_ok_for_letter_p): Likewise.
16694         (alpha_extra_constraint): Likewise.
16695         (alpha_preferred_reload_class): Likewise.  Do not force
16696         symbolic constants to memory.
16697         (alpha_legitimate_address_p): Accept simple references
16698         to small_symbolic_operand.
16699         (alpha_legitimize_address): New arg scratch.  Be prepared to be
16700         called when no_new_pseudos.  Emit simple symbolic references.
16701         Split integers into low, high, and rest.
16702         (alpha_expand_mov): Use alpha_legitimize_address.
16703         (some_small_symbolic_mem_operand): New.
16704         (split_small_symbolic_mem_operand): New.
16705         * config/alpha/alpha-protos.h: Update.
16706         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
16707         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
16708         (EXTRA_CONSTRAINT): Likewise.
16709         (PREFERRED_RELOAD_CLASS): Likewise.
16710         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
16711         (PREDICATE_CODES): Update.
16712         * config/alpha/alpha.md: New post-reload splitters to convert
16713         simplfied symbolic operands to the form that references $29.
16714         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
16715         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
16716
16717 2002-01-03  Richard Henderson  <rth@redhat.com>
16718
16719         * local-alloc.c (function_invariant_p): Update commentary.
16720
16721 2002-01-04  H.J. Lu <hjl@gnu.org>
16722
16723         * toplev.c (rest_of_compilation): Fix a typo when calling
16724         cleanup_cfg.
16725
16726 2002-01-03  Kazu Hirata  <kazu@hxi.com>
16727
16728         * c-common.c: Fix formatting.
16729         * diagnostic.c: Likewise.
16730         * doloop.c: Likewise.
16731         * dwarf2out.c: Likewise.
16732
16733 2002-01-03  Kazu Hirata  <kazu@hxi.com>
16734
16735         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
16736         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
16737
16738 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
16739
16740         * cpperror.c: Update comments and copyright.
16741         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
16742         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
16743
16744 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16745
16746         * collect2.c (main): Use strcmp when testing for "-shared".
16747
16748 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
16749
16750         * cppmacro.c: Don't include intl.h.  Update comments.
16751         (new_number_token): Allocate enough buffer for 64-bit unsigned
16752         integers; update prototype.
16753         * cppmain.c: Update comments.
16754
16755 2002-01-03  William Cohen  <wcohen@redhat.com>
16756
16757         * function.h (struct function): Add profile.
16758         (current_function_profile): New.
16759         doc/extend.texi: Update documentation.
16760         * final.c (final_start_function): Use current_function_profile
16761         instead of profile_flag.
16762         (profile_after_prologue): Likewise.
16763         * function.c (expand_function_start): Likewise.
16764         (expand_function_start): Likewise.
16765         * config/alpha/alpha.c (direct_call_operand):
16766         (alpha_does_function_need_gp): Likewise.
16767         (alpha_expand_prologue): Likewise.
16768         * config/arm/arm.c (arm_expand_prologue): Likewise.
16769         thumb_expand_prologue: Likewise.
16770         * config/d30v/d30v.c (d30v_stack_info): Likewise.
16771         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
16772         (fr30_expand_prologue): Likewise.
16773         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
16774         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
16775         * config/i386/i386.h (FINALIZE_PIC): Likewise.
16776         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
16777         * config/i960/i960.c (i960_output_function_prologue): Likewise.
16778         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
16779         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
16780         (m32r_expand_prologue): Likewise.
16781         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
16782         (m88k_expand_prologue): Likewise.
16783         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
16784         * config/mips/mips.c (compute_frame_size): Likewise.
16785         (mips_expand_prologue): Likewise.
16786         (mips_can_use_return_insn): Likewise.
16787         * config/pa/elf.h (ASM_FILE_START): Likewise.
16788         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
16789         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
16790         * config/pa/som.h (ASM_FILE_START): Likewise.
16791         * config/romp/romp.c (romp_using_r14): Likewise.
16792         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
16793         (rs6000_stack_info): Likewise.
16794         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
16795         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
16796         * config/v850/v850.c (compute_register_save_size): Likewise.
16797
16798 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
16799
16800         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
16801         gen_lowpart_common fails, use gen_lowpart_SUBREG.
16802
16803 2002-01-03  Turly O'Connor  <turly@apple.com>
16804
16805         * darwin.c (machopic_output_possible_stub_label): Don't generate
16806         stub routines for pseudo-stubs which we've just defined.
16807
16808 2002-01-03  Kazu Hirata  <kazu@hxi.com>
16809
16810         * builtins.c: Fix formatting.
16811         * c-typeck.c: Likewise.
16812         * combine.c: Likewise.
16813         * expr.c: Likewise.
16814         * loop.c: Likewise.
16815
16816 2002-01-03  Andreas Schwab  <schwab@suse.de>
16817
16818         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
16819         and return true if _cpp_push_next_buffer pushed a new include
16820         file.
16821         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
16822         _cpp_pop_file_buffer did not push a new file.
16823         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
16824
16825 2002-01-02  Eric Christopher  <echristo@redhat.com>
16826
16827         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
16828         FIND_REG_INC_NOTE call. Update copyright.
16829         * loop.c (canonicalize_condition): Ditto.
16830         * reorg.c (delete_scheduled_jump): Ditto.
16831
16832 2002-01-03  Kazu Hirata  <kazu@hxi.com>
16833
16834         * gcse.c: Fix formatting.
16835
16836 2002-01-03  Graham Stott  <grahams@redhat.com>
16837
16838         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
16839         forward defs for struct tags rtx_def, union_tree, rtvec_def
16840         also output corresponding typedefs for rtx, tree, and rtvec.
16841
16842         * system.h: Move forward defs for struct tags rtx_def, union_tree,
16843         rtvec_def along with corresponding typedefs for rtx, tree, and
16844         rtvec to config.h, hconfig.h, tconfig.h.
16845
16846 2002-01-03  Graham Stott  <grahams@redhat.com>
16847
16848         * tree.h: Update copyright date.
16849         (IS_EXPR_CODE_CLASS): Add parenthesis.
16850         (TREE_SET_CODE): Add whitespace.
16851         (TREE_CHECK): Add parenthesis.
16852         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
16853         (CST_OR_CONSTRUCTOR_CHECK):
16854         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
16855         (TREE_SYMBOL_REFERENCED): Whitespace.
16856         (INT_CST_LT): Likewise.
16857         (INT_CST_LT_UNSIGNED): Likewise.
16858         (tree_real_cst): Unwrap comment.
16859         (tree_string): Likewise.
16860         (tree_complex): Likewise.
16861         (IDENTIFIER_POINTER): correct cast.
16862         (SAVE_EXPR_CONTEXT): Whitespace.
16863         (EXPR_WFL_FILENAME_NODE): Likewise.
16864         (EXPR_WFL_FILENAME): Remove parenthesis.
16865         (DECL_ORIGIN): Add parenthesis.
16866         (DECL_FROM_INLINE): Use NULL_TREE.
16867         (build_int_2): Whitespace.
16868         (build_type_variant): Add parenthesis.
16869
16870         * gcc/jcf-parse.c: Update copyright date.
16871         (yyparse): Constify resource_filename.
16872
16873 2002-01-03  Graham Stott  <grahams@redhat.com>
16874
16875         * rtl.h: Update copyright date.
16876         (RTL_CHECK1): Wrap long line.
16877         (RTL_CHECK2): Likewise.
16878         (RTL_CHECKC1): Wrap long line and whitespace.
16879         (RTL_CHECKC2): Likewise.
16880         (XWINT): Whitespace.
16881         (XINT): Likewise.
16882         (XSTR): Likewise.
16883         (XEXP): Likewise.
16884         (XVEC): Likewise.
16885         (XMODE): Likewise.
16886         (XBITMAP): Likewise.
16887         (XTREE): Likewise.
16888         (XBBDEF): Likewise.
16889         (XTMPL): Likewise.
16890         (X0WINT): Likewise.
16891         (X0INT):Likewise.
16892         (X0UINT): Likewise.
16893         (X0STR): Likewise.
16894         (X0EXP): Likewise.
16895         (X0VEC): Likewise.
16896         (X0MODE): Likewise.
16897         (X0BITMAP): Likewise.
16898         (X0TREE): Likewise.
16899         (X0BBDEF): Likewise.
16900         (X0ADVFLAGS): Likewise.
16901         (X0CSELIB): Likewise.
16902         (X0MEMATTR): Likewise.
16903         (XCWINT): Likewise.
16904         (XCINT): Likewise.
16905         (XCUINT): Likewise.
16906         (XCSTR): Likewise.
16907         (XCEXP): Likewise.
16908         (XCVEC): Likewise.
16909         (XCMODE): Likewise.
16910         (XCBITMAP): Likewise.
16911         (XCTREE): Likewise.
16912         (XCBBDEF): Likewise.
16913         (XCADVFLAGS): Likewise.
16914         (XCCSELIB): Likewise.
16915         (XC2EXP): Likewise.
16916         (INSN_UID): Likewise.
16917         (PREV_INSN): Likewise.
16918         (PATTERN): Likewise.
16919         (INSN_CODE): Likewise.
16920         (PUT_REG_NOTE_KIND): Likewise.
16921         (CODE_LABEL_NUMBER): Likewise.
16922         (NOTE_SOURCE_FILE): Likewise.
16923         (NOTE_BLOCK): Likewise.
16924         (NOTE_EH_HANDLER): Likewise.
16925         (NOTE_RANGE_INFO): Likewise.
16926         (NOTE_LIVE_INFO): Likewise.
16927         (NOTE_BASIC_BLOCK): Likewise.
16928         (NOTE_EXPECTED_VALUE): Likewise.
16929         (NOTE_LINE_NUMBER): Likewise.
16930         (LABEL_NAME): Likewise.
16931         (LABEL_NUSES): Likewise.
16932         (LABEL_ALTERNATE_NAME): Likewise.
16933         (ADDRESSOF_DECL): Likewise.
16934         (JUMP_LABEL): Likewise.
16935         (LABEL_NEXTREF): Likewise.
16936         (REGNO): Likewise.
16937         (ORIGINAL_REGNO: Likewise.
16938         (HARD_REGISTER_NUM_P): Add parenthesis.
16939         (SUBREG_REG): Whitespace.
16940         (SUBREG_BYTE): Likewise.
16941         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
16942         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
16943         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
16944         (ASM_OPERANDS_INPUT_VEC): Likewise.
16945         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
16946         (ASM_OPERANDS_INPUT): Likewise.
16947         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
16948         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
16949         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
16950         (ASM_OPERANDS_INPUT_MODE): Likewise.
16951         (ASM_OPERANDS_SOURCE_FILE): Likewise.
16952         (ASM_OPERANDS_SOURCE_LINE): Likewise.
16953         (MEM_SET_IN_STRUCT_P): Minor reformat.
16954         (TRAP_CONDITION): Whitespace.
16955         (TRAP_CODE): Likewise.
16956         (COND_EXEC_TEST): Likewise.
16957         (COND_EXEC_CODE): Likewise.
16958         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
16959         (PHI_NODE_P): Add parenthesis.
16960         (plus_constant): Whitespace and add parenthesis.
16961
16962 2002-01-03  Kazu Hirata  <kazu@hxi.com>
16963
16964         * config/avr/avr.c: Fix comment typos.
16965         * config/c4x/c4x.md: Likewise.
16966         * config/dsp16xx/dsp16xx.h: Likewise.
16967         * config/dsp16xx/dsp16xx.md: Likewise.
16968         * config/i386/i386.md: Likewise.
16969         * config/ia64/ia64.c: Likewise.
16970         * config/m32r/m32r.h: Likewise.
16971         * config/m68hc11/m68hc11.md: Likewise.
16972         * config/mmix/mmix.c: Likewise.
16973         * config/mn10200/mn10200.c: Likewise.
16974         * config/romp/romp.c: Likewise.
16975         * config/sh/sh.c: Likewise.
16976         * config/stormy16/stormy16.c: Likewise.
16977         * config/stormy16/stormy16.h: Likewise.
16978         * config/stormy16/stormy16.md: Likewise.
16979
16980 2002-01-03  Graham Stott  <grahams@redhat.com>
16981
16982         * loop.h: Update copyright date.
16983         (LOOP_MOVABLES): Fix typo.
16984         (LOOP_REGS): Likewise.
16985         (LOOP_IVS): Likewise.
16986
16987 2002-01-03  Graham Stott  <grahams@redhat.com>
16988
16989         * cppinit.c: Update copyright date.
16990         Don't include output.h
16991         * Makefile.in: Update copyright date.
16992         Update dependency.
16993
16994 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
16995
16996         PR c/5226
16997         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
16998         (-pthread) Add to RS/6000 options.
16999
17000 2002-01-02  Kazu Hirata  <kazu@hxi.com>
17001
17002         * except.c: Fix comment typos.
17003         * loop.c: Likewise.
17004         * varasm.c: Likewise.
17005         * doc/tm.texi: Fix a typo.
17006
17007 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
17008
17009         * c-typeck.c (output_init_element): Allow initializing static storage
17010         duration objects with compound literals.
17011
17012 2002-01-02  Richard Henderson  <rth@redhat.com>
17013
17014         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
17015         after abusing it.
17016
17017 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17018
17019         * gcc.c (default_compilers): Const-ify.
17020         * mips-tdump.c (stab_names): Likewise.
17021         * mips-tfile.c (map_coff_types, map_coff_storage,
17022         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
17023         pseudo_ops_t, pseudo_ops): Likewise.
17024         * protoize.c (default_include): Likewise
17025
17026         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
17027         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
17028         Add array size in declaration.
17029         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
17030         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
17031         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
17032         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
17033         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
17034         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
17035         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
17036         emtens, make_nan): Const-ify.
17037         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
17038         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
17039
17040 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
17041
17042         * config.gcc (ia64-*-*): Set extra_headers.
17043         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
17044         * config/alpha/t-osf: Remove.
17045         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
17046
17047 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
17048
17049         * config/rs6000/t-aix43: Revert previous change.
17050
17051 2002-01-02  Jason Merrill  <jason@redhat.com>
17052
17053         * c-decl.c (c_expand_body): Call outlining_inline_function when
17054         emitting an inline function out of line.
17055
17056 2002-01-02  Richard Henderson  <rth@redhat.com>
17057
17058         * dwarf2out.c (limbo_die_node): Add created_for member.
17059         (new_die): New argument created_for.  Update all callers.
17060         (mark_limbo_die_list): New.
17061         (dwarf2out_init): Register limbo_die_list as a root.
17062         (dwarf2out_finish): Force insert limbo dies into their function
17063         context.
17064
17065 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
17066
17067         PR c++/5089
17068         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
17069
17070 2002-01-02  Kazu Hirata  <kazu@hxi.com>
17071
17072         * config/h8300/fixunssfsi.c: Update copyright.
17073         Fix comment typos.
17074         Fix formatting.
17075         * config/h8300/h8300.c: Update copyright.
17076         Eliminate warnings.
17077
17078 2002-01-02  Kazu Hirata  <kazu@hxi.com>
17079
17080         * config/romp/romp.c: Fix comment formatting.
17081         * config/romp/romp.h: Likewise.
17082         * config/romp/romp.md: Likewise.
17083         * config/s390/s390.c: Likewise.
17084         * config/stormy16/stormy16.c: Likewise.
17085         * config/stormy16/stormy16.h: Likewise.
17086
17087 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
17088
17089         * c-common.h (genrtl_expr_stmt_value): Declare.
17090         * c-semantics.c (genrtl_goto_stmt): Redirect to...
17091         (genrtl_goto_stmt_value): ... this new function.  Pass new
17092         argument down to expand_expr_stmt_value, taking
17093         TREE_ADDRESSABLE into account.
17094         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
17095         STMT_EXPR as addressable, i.e., one whose result we want.
17096         * expr.c (expand_expr): Don't save expression statement value
17097         of labeled_blocks or loop_exprs.
17098         * stmt.c (expand_expr_stmt): Redirect to...
17099         (expand_expr_stmt_value): ... this new function.  Use new
17100         argument to tell whether to save expression value.
17101         (expand_end_stmt_expr): Reset last_expr_type and
17102         last_expr_value if we don't have either.
17103         * tree-inline.c (declare_return_variable): Mark its use
17104         statement as addressable.
17105         * tree.h: Document new use of TREE_ADDRESSABLE.
17106         (expand_expr_stmt_value): Declare.
17107
17108 2002-01-01  Tom Rix  <trix@redhat.com>
17109
17110         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
17111         rs6000_emit_allocate_stack.
17112
17113 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
17114
17115         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
17116         ${srcdir}/ginclude/ to every entry in extra_headers.
17117         * configure: Regenerate.
17118         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
17119         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
17120         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
17121         * ginclude/proto.h: Rename to config/convex/proto.h.
17122
17123 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17124
17125         * attribs.c (handle_vector_size_attribute): Use host_integerp
17126         and tree_int_cst; remove warnings.
17127         * caller-save.c (insert_restore): Add cast to get rid of warning.
17128         (insert_save): Likewise.
17129         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
17130         * regmove.c (find_matches): Add temporary var to kill a warning.
17131
17132 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
17133
17134         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
17135         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
17136         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
17137         (vms-dwarf2eh.o): Add Makefile rule.
17138         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
17139         * config/alpha/vms-dwarf2eh.asm: New file.
17140
17141         * gcc.c (delete_if_ordinary): Delete all versions.
17142
17143 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
17144
17145         * config/mmix/mmix.md: Update FIXME to not mention
17146         define_constants.
17147         (MMIX_rJ_REGNUM): New define_constants constant.
17148         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
17149         "*movdicc_real"): Adjust contraints formatting.
17150         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
17151         for branch prediction.
17152         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
17153         output template.
17154         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
17155         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
17156         number.  Delete related FIXMEs.
17157         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
17158         from number to MMIX_rJ_REGNUM.
17159         (TARGET_MASK_BRANCH_PREDICT): New.
17160         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
17161         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
17162         value.  Add -mbranch-predict and -mno-branch-predict.
17163         (TARGET_VERSION): Drop date.
17164         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
17165         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
17166         for finding out global symbols.
17167         (mmix_asm_output_labelref): Revert condition for global symbol.
17168         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
17169         (mmix_print_operand_punct_valid_p): A '+' is valid.
17170
17171 See ChangeLog.6 for earlier changes.